]> BookStack Code Mirror - bookstack/blobdiff - app/Notifications/ResetPassword.php
#47 - Fixes the issues with the test case.
[bookstack] / app / Notifications / ResetPassword.php
index 646030a103f6f9ff648d602753ce807147ca91ca..affd8f07638330d2bc70acfbceb8e2c0150c2980 100644 (file)
@@ -43,8 +43,9 @@ class ResetPassword extends Notification
     public function toMail()
     {
         return (new MailMessage)
-            ->line('You are receiving this email because we received a password reset request for your account.')
-            ->action('Reset Password', baseUrl('password/reset/' . $this->token))
-            ->line('If you did not request a password reset, no further action is required.');
+            ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')]))
+            ->line(trans('auth.email_reset_text'))
+            ->action(trans('auth.reset_password'), baseUrl('password/reset/' . $this->token))
+            ->line(trans('auth.email_reset_not_requested'));
     }
 }