22
33namespace App \Providers ;
44
5+ use App \Actions \Fortify \ResetUserPassword ;
56use Illuminate \Cache \RateLimiting \Limit ;
67use Illuminate \Http \Request ;
78use Illuminate \Support \Facades \RateLimiter ;
@@ -26,10 +27,19 @@ public function register(): void
2627 */
2728 public function boot (): void
2829 {
30+ $ this ->configureActions ();
2931 $ this ->configureViews ();
3032 $ this ->configureRateLimiting ();
3133 }
3234
35+ /**
36+ * Configure Fortify actions.
37+ */
38+ private function configureActions (): void
39+ {
40+ Fortify::resetUserPasswordsUsing (ResetUserPassword::class);
41+ }
42+
3343 /**
3444 * Configure Fortify views.
3545 */
@@ -44,6 +54,15 @@ private function configureViews(): void
4454 'status ' => $ request ->session ()->get ('status ' ),
4555 ]));
4656
57+ Fortify::requestPasswordResetLinkView (fn (Request $ request ) => Inertia::render ('auth/forgot-password ' , [
58+ 'status ' => $ request ->session ()->get ('status ' ),
59+ ]));
60+
61+ Fortify::resetPasswordView (fn (Request $ request ) => Inertia::render ('auth/reset-password ' , [
62+ 'email ' => $ request ->email ,
63+ 'token ' => $ request ->route ('token ' ),
64+ ]));
65+
4766 Fortify::twoFactorChallengeView (fn () => Inertia::render ('auth/two-factor-challenge ' ));
4867
4968 Fortify::confirmPasswordView (fn () => Inertia::render ('auth/confirm-password ' ));
0 commit comments