From d8323f126c912d544a9a435963fed412cc456641 Mon Sep 17 00:00:00 2001 From: Joseph Cohen Date: Sat, 1 Aug 2015 14:08:14 -0500 Subject: [PATCH] Fix the token sent to unsubscribe --- app/Handlers/Events/SendIncidentEmailNotificationHandler.php | 2 +- app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php index 61aee6db..b88233d2 100644 --- a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php +++ b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php @@ -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'), ]; diff --git a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php index 1f458622..8ff99b93 100644 --- a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php +++ b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php @@ -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'), ];