3 namespace BookStack\Http\Controllers\Auth;
5 use BookStack\Http\Controllers\Controller;
6 use Illuminate\Foundation\Auth\ResetsPasswords;
7 use Illuminate\Http\Request;
9 class ResetPasswordController extends Controller
12 |--------------------------------------------------------------------------
13 | Password Reset Controller
14 |--------------------------------------------------------------------------
16 | This controller is responsible for handling password reset requests
17 | and uses a simple trait to include this behavior. You're free to
18 | explore this trait and override any methods you wish to tweak.
24 protected $redirectTo = '/';
27 * Create a new controller instance.
31 public function __construct()
33 $this->middleware('guest');
34 parent::__construct();
38 * Get the response for a successful password reset.
40 * @param Request $request
41 * @param string $response
42 * @return \Illuminate\Http\Response
44 protected function sendResetResponse(Request $request, $response)
46 $message = trans('auth.reset_password_success');
47 session()->flash('success', $message);
48 return redirect($this->redirectPath())
49 ->with('status', trans($response));