From 9877023bb40720e491c74bf3bd5d8be5ff839485 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 10 Jun 2015 14:56:06 +0100 Subject: [PATCH] Fix missing token from unsub link --- 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 8adcefb9..16747504 100644 --- a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php +++ b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php @@ -75,7 +75,7 @@ class SendIncidentEmailNotificationHandler 'htmlContent' => $data->formattedMessage, 'textContent' => $data->message, 'token' => $subscriber->token, - 'unsubscribeLink' => route('unsubscribe', $subscriber->token), + 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]), ]; $this->mailer->queue([ diff --git a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php index 56d0c6e3..c2642090 100644 --- a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php +++ b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php @@ -75,7 +75,7 @@ class SendMaintenanceEmailNotificationHandler 'htmlContent' => $data->formattedMessage, 'textContent' => $data->message, 'token' => $subscriber->token, - 'unsubscribeLink' => route('unsubscribe', $subscriber->token), + 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]), ]; $this->mailer->queue([