]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/ResetPasswordController.php
Fixed role permission removal bug
[bookstack] / app / Http / Controllers / Auth / ResetPasswordController.php
index 656b8cc42418a63840fe2c32946100e952ee64f0..eb678503d80828e7a7e700e42f2f335d252a20f4 100644 (file)
@@ -20,6 +20,8 @@ class ResetPasswordController extends Controller
 
     use ResetsPasswords;
 
+    protected $redirectTo = '/';
+
     /**
      * Create a new controller instance.
      *
@@ -30,4 +32,18 @@ class ResetPasswordController extends Controller
         $this->middleware('guest');
         parent::__construct();
     }
+
+    /**
+     * Get the response for a successful password reset.
+     *
+     * @param  string  $response
+     * @return \Illuminate\Http\Response
+     */
+    protected function sendResetResponse($response)
+    {
+        $message = trans('auth.reset_password_success');
+        session()->flash('success', $message);
+        return redirect($this->redirectPath())
+            ->with('status', trans($response));
+    }
 }
\ No newline at end of file