File tree Expand file tree Collapse file tree 3 files changed +7
-217
lines changed Expand file tree Collapse file tree 3 files changed +7
-217
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public function register(): void
2424 */
2525 public function boot (): void
2626 {
27- Fortify::ignoreRoutes ();
2827 Fortify::twoFactorChallengeView (fn () => view ('livewire.auth.two-factor-challenge ' ));
2928
3029 RateLimiter::for ('two-factor ' , function (Request $ request ) {
Original file line number Diff line number Diff line change 1313 ->name ('dashboard ' );
1414
1515Route::middleware (['auth ' ])->group (function () {
16- Route::redirect ('settings ' , 'settings/profile ' )-> middleware ([ ' password.confirm ' ]) ;
16+ Route::redirect ('settings ' , 'settings/profile ' );
1717
1818 Volt::route ('settings/profile ' , 'settings.profile ' )->name ('settings.profile ' );
1919 Volt::route ('settings/password ' , 'settings.password ' )->name ('settings.password ' );
2020 Volt::route ('settings/appearance ' , 'settings.appearance ' )->name ('settings.appearance ' );
2121
22+ $ twoFactorMiddleware = Features::optionEnabled (Features::twoFactorAuthentication (), 'confirmPassword ' )
23+ ? ['password.confirm ' ]
24+ : [];
25+
2226 Volt::route ('settings/two-factor ' , 'settings.two-factor ' )
27+ ->middleware ($ twoFactorMiddleware )
2328 ->name ('settings.two-factor ' );
2429});
2530
26- require __DIR__ . '/auth.php ' ;
31+ require __DIR__ . '/auth.php ' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments