-
Notifications
You must be signed in to change notification settings - Fork 232
Replace reset password with fortify #207
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
Replace reset password with fortify #207
Conversation
688a72a to
4c879d7
Compare
d3a8e7c to
034974c
Compare
…assword_reset_with_fortify # Conflicts: # app/Providers/FortifyServiceProvider.php
992c30b to
307996e
Compare
…assword_reset_with_fortify
a9972f0 to
6d7577c
Compare
| Route::get('settings/password', [PasswordController::class, 'edit'])->name('user-password.edit'); | ||
|
|
||
| Route::put('settings/password', [PasswordController::class, 'update']) | ||
| ->middleware('throttle:6,1') | ||
| ->name('password.update'); | ||
| ->name('user-password.update'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During this integration, we identified a route name conflict between our existing setting password update route and Fortify’s built-in password reset route. Previously, it was defined as: password.update & password.edit which conflicted with Fortify’s internal route. To resolve this, we updated it to: user-password.update & user-password.edit same as per fortify conventions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
(Part 3: Password Reset)
This MR replaces the existing password reset logic with Fortify’s built-in implementation.
All routes, actions, and validation logic are now handled via Fortify.
The existing views remain unchanged, while the backend logic is fully transitioned to Fortify.
Feature toggles in
fortify.phpto behave as expected, allowing password reset functionality to be easily enabled or disabled which reflect in the UI.'password.update'&'password.edit'which conflicted with Fortify’s internal route. To resolve this, we updated it to:'user-password.update'&user-password.edit'Related Merge Requests