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:
Andreas Fitzek
2025-07-02 11:03:10 +02:00
committed by GitHub
parent 060acd2db8
commit 657e5a3b3a
56 changed files with 619 additions and 88 deletions

View File

@@ -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',
});