mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Allow enforcement of MFA usage on instance (#16556)
Co-authored-by: Marc Littlemore <marc@n8n.io> Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
@@ -142,6 +142,11 @@ const login = async (form: LoginRequestDto) => {
|
||||
|
||||
toast.clearAllStickyNotifications();
|
||||
|
||||
if (settingsStore.isMFAEnforced && !usersStore.currentUser?.mfaAuthenticated) {
|
||||
await router.push({ name: VIEWS.PERSONAL_SETTINGS });
|
||||
return;
|
||||
}
|
||||
|
||||
telemetry.track('User attempted to login', {
|
||||
result: showMfaView.value ? 'mfa_success' : 'success',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user