We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old input data isn't being preserved.
SendsPasswordResetEmails@sendResetLinkFailedResponse should match ResetsPasswords@sendResetFailedResponse and use:
SendsPasswordResetEmails@sendResetLinkFailedResponse
ResetsPasswords@sendResetFailedResponse
return redirect()->back() ->withInput($request->only('email')) ->withErrors(['email' => trans($response)]);
instead of this:
return back()->withErrors( ['email' => trans($response)] );
Also, I don't understand how ResetsPasswords@showResetForm gets email when the route looks like:
ResetsPasswords@showResetForm
email
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
public function showResetForm(Request $request, $token = null) { return view('auth.passwords.reset')->with( ['token' => $token, 'email' => $request->email] ); }
Also, ForgotPasswordController should have:
ForgotPasswordController
protected $redirectTo = '/home';
since it also redirects like LoginController and RegisterController.
LoginController
RegisterController
Also, the password reset email escapes <br> after Regards,.
<br>
Regards,
I don't know exactly what's happening with #17499 so I didn't make a PR for this.
The text was updated successfully, but these errors were encountered:
It's usually better to submit these things as a PR.
Also, you can access query string params through the request object.
/password/reset/XXXXX?email=hello
can be accessed like this:
$request->email
Sorry, something went wrong.
@tylercubell just overide the sendResetLinkFailedResponse function in the ForgotPasswordController like this
sendResetLinkFailedResponse
/** * Get the response for a failed password reset link. * * @param \Illuminate\Http\Request $request * @param string $response * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse */ protected function sendResetLinkFailedResponse(Request $request, $response) { return back()->withErrors( ['email' => trans($response)] )->withInput(\Input::all()); }
No branches or pull requests
Description:
Old input data isn't being preserved.
SendsPasswordResetEmails@sendResetLinkFailedResponse
should matchResetsPasswords@sendResetFailedResponse
and use:instead of this:
Also, I don't understand how
ResetsPasswords@showResetForm
getsemail
when the route looks like:Also,
ForgotPasswordController
should have:since it also redirects like
LoginController
andRegisterController
.Also, the password reset email escapes
<br>
afterRegards,
.I don't know exactly what's happening with #17499 so I didn't make a PR for this.
The text was updated successfully, but these errors were encountered: