disabeled 2fa
This commit is contained in:
parent
83d51c441f
commit
f8d9133c8a
|
|
@ -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
|
||||
],
|
||||
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue