3 namespace BookStack\Http\Controllers\Auth;
5 use BookStack\Http\Controllers\Controller;
6 use Illuminate\Foundation\Auth\ResetsPasswords;
8 class ResetPasswordController extends Controller
11 |--------------------------------------------------------------------------
12 | Password Reset Controller
13 |--------------------------------------------------------------------------
15 | This controller is responsible for handling password reset requests
16 | and uses a simple trait to include this behavior. You're free to
17 | explore this trait and override any methods you wish to tweak.
23 protected $redirectTo = '/';
26 * Create a new controller instance.
30 public function __construct()
32 $this->middleware('guest');
33 parent::__construct();
37 * Get the response for a successful password reset.
39 * @param string $response
40 * @return \Illuminate\Http\Response
42 protected function sendResetResponse($response)
44 $message = 'Your password has been successfully reset.';
45 session()->flash('success', $message);
46 return redirect($this->redirectPath())
47 ->with('status', trans($response));