jasminetracey / lara8auth

This is a simple auth starter setup for laravel 8 projects using bootstrap and laravel fortify
https://dev.to/jasminetracey/laravel-8-with-bootstrap-livewire-and-fortify-5d33
11 stars 5 forks source link

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

Open Majestio opened 3 years ago

Majestio commented 3 years ago

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 commented 3 years ago

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') }}">