mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 09:46:55 +08:00
perf: Invalid third-party authentication platforms blocked by default login
This commit is contained in:
committed by
fit2cloud-chenyw
parent
754b9f2565
commit
e28380361f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user