Complete-Ecommerce-in-laravel-10
Complete-Ecommerce-in-laravel-10 copied to clipboard
reset password not working
reset password not working
- Route::get('password/reset', 'FrontendController@showResetForm')->name('password.reset'); \only this routing available in web.php for password resets
- Not routed to ResetPasswordController, hence the entire reset password operation is not working
- Had directly used "use ResetsPasswords;" in ResetPasswordController. Difficult to arrange routing to complete password reset email path
I came across this problem:
- Add the ResetPasswordController to your web.php file use App\Http\Controllers\Auth\ResetPasswordController;
- Remove the reset password route in the web.php file
- Add these two routes to the web.php Route::get('password/reset/{token}', [ResetPasswordController::class, 'showResetForm'])->name('password.reset'); Route::post('password/reset', [ResetPasswordController::class, 'reset'])->name('password.update');
This did the trick for me. You can customize the blade.php that are in the resources/views/auth/ folder