Skip to content

Conversation

pushpak1300
Copy link
Member

@pushpak1300 pushpak1300 commented Oct 10, 2025

(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.php to behave as expected, allowing password reset functionality to be easily enabled or disabled which reflect in the UI.

  • 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'

Related Merge Requests

@pushpak1300 pushpak1300 force-pushed the replace_email_verification_with_fortify branch 2 times, most recently from 688a72a to 4c879d7 Compare October 12, 2025 11:33
@pushpak1300 pushpak1300 force-pushed the replace_password_reset_with_fortify branch from d3a8e7c to 034974c Compare October 12, 2025 11:49
@pushpak1300 pushpak1300 marked this pull request as ready for review October 12, 2025 12:24
…assword_reset_with_fortify

# Conflicts:
#	app/Providers/FortifyServiceProvider.php
@pushpak1300 pushpak1300 force-pushed the replace_password_reset_with_fortify branch from 992c30b to 307996e Compare October 13, 2025 06:16
@pushpak1300 pushpak1300 force-pushed the replace_password_reset_with_fortify branch from a9972f0 to 6d7577c Compare October 13, 2025 11:39
Comment on lines +16 to +20
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');
Copy link
Member Author

@pushpak1300 pushpak1300 Oct 13, 2025

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

Copy link
Contributor

@joetannenbaum joetannenbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

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

Successfully merging this pull request may close these issues.

2 participants