perf: Invalid third-party authentication platforms blocked by default login

This commit is contained in:
fit2cloud-chenyw
2025-12-30 11:05:52 +08:00
committed by fit2cloud-chenyw
parent 754b9f2565
commit e28380361f
+2 -2
View File
@@ -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)