Commit 32b1f6ff authored by Mark Harding's avatar Mark Harding

(chore): email on a friday

parent 8bd9d70c
No related merge requests found
Pipeline #63061617 passed with stages
in 8 minutes and 12 seconds
......@@ -68,14 +68,14 @@ class EmailRewards
break;
case "global":
$topic = $_GET['topic'];
if ($topic != 'minds_news') {
if ($topic != 'exclusive_promotions') {
return;
}
$validator = $_GET['validator'];
$key = 'rogan.md';
return;
if ($validator == sha1($campaign . 'rogan.md' . $topic . $user->guid . Config::_()->get('emails_secret'))) {
$tokens = 3 * (10 ** 18);
//$key = '.md';
//return;
if ($validator == sha1($campaign . 'gift-24-05-19.md' . $topic . $user->guid . Config::_()->get('emails_secret'))) {
$tokens = 5 * (10 ** 18);
$campaign = $validator; //hack
} else {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment