You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After artisan make:auth and adding {locale} in front of the auth routes, the password reset form doesn't work any more and shows an error: "This password reset token is invalid."
Steps To Reproduce:
Set up authentication
Add {locale} for auth routes
Add ['locale' => app()->getLocale()] to all routes() calls
Use password reset form
Click on the password reset link in the generated email
Try to reset the password
More information:
Routes:
| | GET|HEAD | {locale}/password/reset | password.request | App\Http\Controllers\Auth\ForgotPasswordController@showLinkRequestForm | web |
| | POST | {locale}/password/reset | password.update | App\Http\Controllers\Auth\ResetPasswordController@reset | web |
| | GET|HEAD | {locale}/password/reset/{token} | password.reset | App\Http\Controllers\Auth\ResetPasswordController@showResetForm | web |
Description:
After
artisan make:auth
and adding{locale}
in front of the auth routes, the password reset form doesn't work any more and shows an error: "This password reset token is invalid."Steps To Reproduce:
{locale}
for auth routes['locale' => app()->getLocale()]
to allroutes()
callsMore information:
Routes:
Generated URL:
HTML source
As you can see the token value is
en
instead ofebecdbb7a2a5ed4a0d95c8792c86f1a064d6b95a060ab3185e5f9f465b820d1f
.The source code passing the token to the form is: https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/Auth/ResetsPasswords.php#L25-L30
The problem seems to be that the router passes the first route variable instead of the value in
{token}
The text was updated successfully, but these errors were encountered: