]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ResetPasswordController.php
Updated npm dependancies
[bookstack] / app / Http / Controllers / Auth / ResetPasswordController.php
index d7005b73954d9759195121e79353384a4d3c070e..214647cd5746a0eff3798a1a9deb1d8803183787 100644 (file)
@@ -31,6 +31,7 @@ class ResetPasswordController extends Controller
     public function __construct()
     {
         $this->middleware('guest');
+        $this->middleware('guard:standard');
         parent::__construct();
     }
 
@@ -44,7 +45,7 @@ class ResetPasswordController extends Controller
     protected function sendResetResponse(Request $request, $response)
     {
         $message = trans('auth.reset_password_success');
-        session()->flash('success', $message);
+        $this->showSuccessNotification($message);
         return redirect($this->redirectPath())
             ->with('status', trans($response));
     }