feat(core): Add MFA (#4767)
https://linear.app/n8n/issue/ADO-947/sync-branch-with-master-and-fix-fe-e2e-tets --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -60,6 +60,9 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||
loginLabel: '',
|
||||
loginEnabled: false,
|
||||
},
|
||||
mfa: {
|
||||
enabled: false,
|
||||
},
|
||||
onboardingCallPromptEnabled: false,
|
||||
saveDataErrorExecution: 'all',
|
||||
saveDataSuccessExecution: 'all',
|
||||
@@ -133,6 +136,9 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||
isTelemetryEnabled(): boolean {
|
||||
return this.settings.telemetry && this.settings.telemetry.enabled;
|
||||
},
|
||||
isMfaFeatureEnabled(): boolean {
|
||||
return this.settings?.mfa?.enabled;
|
||||
},
|
||||
areTagsEnabled(): boolean {
|
||||
return this.settings.workflowTagsDisabled !== undefined
|
||||
? !this.settings.workflowTagsDisabled
|
||||
@@ -354,3 +360,5 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export { useUsersStore };
|
||||
|
||||
Reference in New Issue
Block a user