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

View File

@ -149,10 +149,10 @@ return [
Features::emailVerification(), Features::emailVerification(),
Features::updateProfileInformation(), Features::updateProfileInformation(),
Features::updatePasswords(), Features::updatePasswords(),
Features::twoFactorAuthentication([ // Features::twoFactorAuthentication([
'confirm' => true, // 'confirm' => true,
'confirmPassword' => true, // 'confirmPassword' => true,
]), // ]), // DISABLED - client request
], ],
]; ];

View File

@ -162,14 +162,16 @@ Route::middleware(['auth', 'active'])->group(function () {
Volt::route('settings/profile', 'settings.profile')->name('profile.edit'); Volt::route('settings/profile', 'settings.profile')->name('profile.edit');
Volt::route('settings/password', 'settings.password')->name('user-password.edit'); Volt::route('settings/password', 'settings.password')->name('user-password.edit');
Volt::route('settings/two-factor', 'settings.two-factor') // 2FA settings route - only registered when feature is enabled
->middleware( if (Features::canManageTwoFactorAuthentication()) {
when( Volt::route('settings/two-factor', 'settings.two-factor')
Features::canManageTwoFactorAuthentication() ->middleware(
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'), when(
['password.confirm'], Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
[], ['password.confirm'],
), [],
) ),
->name('two-factor.show'); )
->name('two-factor.show');
}
}); });