Skip to content

Commit

Permalink
feat: Reset password form and routes are partial configured!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhuss committed May 14, 2021
1 parent b8ed160 commit 59b70dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
// Password Reset
Route::get('password/reset', [AdminForgotPasswordController::class, 'showLinkRequestForm'])->name('admin.password.request'); // This name route is used inside the admin `login.blade.php` file to show the forgot password link which is nothing but shows an email blade.php file.
// We explicitly are not defining the method `sendResetLinkEmail()` inside the controller instead we are using same master body of this method which is defined inside the `AdminForgotPasswordController` trait `SendsPasswordResetEmails` method.
// This route will not properly work because the method `sendResetLinkEmail()` will send reset password
// link with the use of 1 more GET route named `localhost/admin/password/reset/${token}`
Route::post('password/email', [AdminForgotPasswordController::class, 'sendResetLinkEmail'])->name('admin.password.email'); // The email.blade.php form file will use this route to send post request.


Expand Down

0 comments on commit 59b70dd

Please sign in to comment.