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::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
]),
// Features::twoFactorAuthentication([
// 'confirm' => 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/password', 'settings.password')->name('user-password.edit');
// 2FA settings route - only registered when feature is enabled
if (Features::canManageTwoFactorAuthentication()) {
Volt::route('settings/two-factor', 'settings.two-factor')
->middleware(
when(
Features::canManageTwoFactorAuthentication()
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
['password.confirm'],
[],
),
)
->name('two-factor.show');
}
});