From ae8b854aca05dd96cb6802284752f39c11f3e54a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 30 Dec 2025 11:05:10 +0800 Subject: [PATCH] perf: Invalid third-party authentication platforms blocked by default login --- frontend/src/views/login/xpack/Handler.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/login/xpack/Handler.vue b/frontend/src/views/login/xpack/Handler.vue index e564583c..d5fb2a1a 100644 --- a/frontend/src/views/login/xpack/Handler.vue +++ b/frontend/src/views/login/xpack/Handler.vue @@ -556,8 +556,8 @@ const auto2Platform = async () => { resObj[item.pkey] = item.pval }) res = parseInt(resObj['login.default_login'] || 0) - - if (res && !adminLogin.value) { + const originArray = ['default', 'cas', 'oidc', 'ldap', 'oauth2', 'saml2'] + if (res && !adminLogin.value && loginCategory.value[originArray[res] as keyof LoginCategory]) { if (res === 3) { qrStatusChange('ldap') updateLoading(false)