Fix the token sent to unsubscribe

This commit is contained in:
Joseph Cohen
2015-08-01 14:08:14 -05:00
parent e6db90a798
commit d8323f126c
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'),
];