/** * Handle a POST request to remind a user of their password. * * @param Request $request * @return Response */ public function postRemind(Request $request) { switch ($response = $this->passwords->remind($request->only('email'))) { case PasswordBroker::INVALID_USER: return redirect()->back()->with('error', trans($response)); case PasswordBroker::REMINDER_SENT: return redirect()->back()->with('status', trans($response)); } }
/** * Handle a POST request to remind a user of their password. * * @param Request $request * @return Response */ public function postRemind(Request $request) { switch ($response = $this->passwords->remind($request->only('email'))) { case PasswordBroker::INVALID_USER: Flash::error(trans($response)); return redirect()->back(); case PasswordBroker::REMINDER_SENT: Flash::message(trans($response)); return redirect()->back(); } }
/** * Handle a POST request to remind a user of their password. * * @param Request $request * * @return Response */ public function postRemind(Request $request) { switch ($response = $this->passwords->remind($request->only('email'))) { case PasswordBroker::INVALID_USER: // Flash the error message to the user. // Flash::error(trans($response)); // Redirect the user back to the page and re-populate the // form with what they had submitted. // return redirect()->back()->withInput(); case PasswordBroker::REMINDER_SENT: // Flash the success message to the user. // Flash::success(trans($response)); // Redirect the user back to the page and re-populate the // form with what they had submitted. // return redirect()->back()->withInput(); } }