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