Skip to content

Commit e283803

Browse files
perf: Invalid third-party authentication platforms blocked by default login
1 parent 754b9f2 commit e283803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/views/login/xpack/Handler.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ const auto2Platform = async () => {
556556
resObj[item.pkey] = item.pval
557557
})
558558
res = parseInt(resObj['login.default_login'] || 0)
559-
560-
if (res && !adminLogin.value) {
559+
const originArray = ['default', 'cas', 'oidc', 'ldap', 'oauth2', 'saml2']
560+
if (res && !adminLogin.value && loginCategory.value[originArray[res] as keyof LoginCategory]) {
561561
if (res === 3) {
562562
qrStatusChange('ldap')
563563
updateLoading(false)

0 commit comments

Comments
 (0)