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

reset password not working #66

Open
thilaju opened this issue May 27, 2022 · 1 comment
Open

reset password not working #66

thilaju opened this issue May 27, 2022 · 1 comment

Comments

@thilaju
Copy link

thilaju commented May 27, 2022

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
@HansiDerSweater
Copy link

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

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

2 participants