mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Extract SAML, OIDC, and LDAP from Settings Store into SSO Store (no-changelog) (#16276)
This commit is contained in:
@@ -12,6 +12,7 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useCloudPlanStore } from '@/stores/cloudPlan.store';
|
||||
import { useSSOStore } from '@/stores/sso.store';
|
||||
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { MFA_AUTHENTICATION_REQUIRED_ERROR_CODE, VIEWS, MFA_FORM } from '@/constants';
|
||||
@@ -27,6 +28,7 @@ export type MfaCodeOrMfaRecoveryCode = Pick<LoginRequestDto, 'mfaCode' | 'mfaRec
|
||||
const usersStore = useUsersStore();
|
||||
const settingsStore = useSettingsStore();
|
||||
const cloudPlanStore = useCloudPlanStore();
|
||||
const ssoStore = useSSOStore();
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -41,8 +43,8 @@ const emailOrLdapLoginId = ref('');
|
||||
const password = ref('');
|
||||
const reportError = ref(false);
|
||||
|
||||
const ldapLoginLabel = computed(() => settingsStore.ldapLoginLabel);
|
||||
const isLdapLoginEnabled = computed(() => settingsStore.isLdapLoginEnabled);
|
||||
const ldapLoginLabel = computed(() => ssoStore.ldapLoginLabel);
|
||||
const isLdapLoginEnabled = computed(() => ssoStore.isLdapLoginEnabled);
|
||||
const emailLabel = computed(() => {
|
||||
let label = locale.baseText('auth.email');
|
||||
if (isLdapLoginEnabled.value && ldapLoginLabel.value) {
|
||||
|
||||
Reference in New Issue
Block a user