Skip to content
New issue

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

Bug in resources/views/auth/reset-password.blade.php #1

Open
Majestio opened this issue Mar 29, 2021 · 1 comment
Open

Bug in resources/views/auth/reset-password.blade.php #1

Majestio opened this issue Mar 29, 2021 · 1 comment

Comments

@Majestio
Copy link

Greetings!

Thank you for the project and the work done. Unfortunately, the password reset functionality does not work.
An error is shown:

ErrorException
Undefined variable: token (View: D:\Domains\laravel-fortify.tpl\laravel\resources\views\auth\reset-password.blade.php)
...
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
D:\Domains\laravel-fortify.tpl\laravel\resources\views/auth/reset-password.blade.php:14

<input type="hidden" name="token" value="{{ $token }}">

If this line is deleted, then the error is not displayed, but the new password is not saved either.
Please fix this.

WBR, Oleg

@Majestio
Copy link
Author

The solution was found. Spied on in another repository. You need to replace the line with this one:

<input type="hidden" name="token" value="{{ request()->route('token') }}">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant