From 4c6252fea8b710d122b901a52374c0c7dd66baab Mon Sep 17 00:00:00 2001 From: tonis Date: Tue, 27 Feb 2024 14:50:06 +0200 Subject: [PATCH] fix issues --- src/User/Factory/MailFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/User/Factory/MailFactory.php b/src/User/Factory/MailFactory.php index 42fc6b68..be0c99b8 100644 --- a/src/User/Factory/MailFactory.php +++ b/src/User/Factory/MailFactory.php @@ -60,7 +60,7 @@ public static function makeRecoveryMailerService($email, Token $token = null) $from = $module->mailParams['fromEmail']; $subject = $module->mailParams['recoveryMailSubject']; $params = [ - 'user' => $token->user, + 'user' => $token ? $token->user : null, 'token' => $token, ]; @@ -82,7 +82,7 @@ public static function makeConfirmationMailerService(User $user, Token $token = $from = $module->mailParams['fromEmail']; $subject = $module->mailParams['confirmationMailSubject']; $params = [ - 'user' => $token->user, + 'user' => $token ? $token->user : null, 'token' => $token, ];