From 5a5a18d91135e74c1a617c6eb003aac708af7fe5 Mon Sep 17 00:00:00 2001 From: romanetar Date: Fri, 23 May 2025 14:55:26 +0200 Subject: [PATCH] feat: add otp code in the otp email subject Signed-off-by: romanetar --- app/Mail/OAuth2PasswordlessOTPMail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Mail/OAuth2PasswordlessOTPMail.php b/app/Mail/OAuth2PasswordlessOTPMail.php index 7f6e932a..28bf335d 100644 --- a/app/Mail/OAuth2PasswordlessOTPMail.php +++ b/app/Mail/OAuth2PasswordlessOTPMail.php @@ -118,7 +118,7 @@ public function __construct */ public function build() { - $this->subject = sprintf("[%s] Your Single-use Code", Config::get('app.app_name')); + $this->subject = sprintf("[%s] Your Single-use Code - %s", Config::get('app.app_name'), $this->otp); Log::debug(sprintf("OAuth2PasswordlessOTPMail::build to %s", $this->email)); return $this->from(Config::get("mail.from")) ->to($this->email)