]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ResetPasswordController.php
Entity Repo & Controller Refactor (#1690)
[bookstack] / app / Http / Controllers / Auth / ResetPasswordController.php
index eb678503d80828e7a7e700e42f2f335d252a20f4..4d98eca597c3fffcece65fc79209bae646a49ab9 100644 (file)
@@ -4,6 +4,7 @@ namespace BookStack\Http\Controllers\Auth;
 
 use BookStack\Http\Controllers\Controller;
 use Illuminate\Foundation\Auth\ResetsPasswords;
+use Illuminate\Http\Request;
 
 class ResetPasswordController extends Controller
 {
@@ -36,14 +37,15 @@ class ResetPasswordController extends Controller
     /**
      * Get the response for a successful password reset.
      *
-     * @param  string  $response
+     * @param Request $request
+     * @param string $response
      * @return \Illuminate\Http\Response
      */
-    protected function sendResetResponse($response)
+    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));
     }
-}
\ No newline at end of file
+}