]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ForgotPasswordController.php
Updated npm dependancies
[bookstack] / app / Http / Controllers / Auth / ForgotPasswordController.php
index 45e40e6fe8371a5d8034ca2d5627f2ff63621acc..a60fcc1c9a6142d450d318375a930e0fce294994 100644 (file)
@@ -30,6 +30,7 @@ class ForgotPasswordController extends Controller
     public function __construct()
     {
         $this->middleware('guest');
+        $this->middleware('guard:standard');
         parent::__construct();
     }
 
@@ -52,8 +53,8 @@ class ForgotPasswordController extends Controller
         );
 
         if ($response === Password::RESET_LINK_SENT) {
-            $message = 'A password reset link has been sent to ' . $request->get('email') . '.';
-            session()->flash('success', $message);
+            $message = trans('auth.reset_password_sent_success', ['email' => $request->get('email')]);
+            $this->showSuccessNotification($message);
             return back()->with('status', trans($response));
         }
 
@@ -64,5 +65,4 @@ class ForgotPasswordController extends Controller
             ['email' => trans($response)]
         );
     }
-
-}
\ No newline at end of file
+}