Complete-Ecommerce-in-laravel-10 icon indicating copy to clipboard operation
Complete-Ecommerce-in-laravel-10 copied to clipboard

reset password not working

Open thilaju opened this issue 2 years ago • 1 comments

reset password not working

  1. Route::get('password/reset', 'FrontendController@showResetForm')->name('password.reset'); \only this routing available in web.php for password resets
  2. Not routed to ResetPasswordController, hence the entire reset password operation is not working
  3. Had directly used "use ResetsPasswords;" in ResetPasswordController. Difficult to arrange routing to complete password reset email path

thilaju avatar May 27 '22 19:05 thilaju

I came across this problem:

  1. Add the ResetPasswordController to your web.php file use App\Http\Controllers\Auth\ResetPasswordController;
  2. Remove the reset password route in the web.php file
  3. 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

HansiDerSweater avatar Feb 07 '24 23:02 HansiDerSweater