disabeled 2fa

This commit is contained in:
Naser Mansour
2026-01-17 12:46:17 +02:00
parent 83d51c441f
commit f8d9133c8a
2 changed files with 16 additions and 14 deletions
+12 -10
View File
@@ -162,14 +162,16 @@ Route::middleware(['auth', 'active'])->group(function () {
Volt::route('settings/profile', 'settings.profile')->name('profile.edit');
Volt::route('settings/password', 'settings.password')->name('user-password.edit');
Volt::route('settings/two-factor', 'settings.two-factor')
->middleware(
when(
Features::canManageTwoFactorAuthentication()
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
['password.confirm'],
[],
),
)
->name('two-factor.show');
// 2FA settings route - only registered when feature is enabled
if (Features::canManageTwoFactorAuthentication()) {
Volt::route('settings/two-factor', 'settings.two-factor')
->middleware(
when(
Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
['password.confirm'],
[],
),
)
->name('two-factor.show');
}
});