Merge pull request #846 from cachethq/unsubscribe-fix

Fix the token sent to unsubscribe
This commit is contained in:
James Brooks 2015-08-01 20:11:51 +01:00
commit 573a301957
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class SendIncidentEmailNotificationHandler
'htmlContent' => $data->formattedMessage,
'textContent' => $data->message,
'token' => $subscriber->token,
'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]),
'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->verify_code]),
'appUrl' => env('APP_URL'),
];

View File

@ -71,7 +71,7 @@ class SendMaintenanceEmailNotificationHandler
'htmlContent' => $data->formattedMessage,
'textContent' => $data->message,
'token' => $subscriber->token,
'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]),
'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->verify_code]),
'appUrl' => env('APP_URL'),
];