Skip to content

Commit 7de8afc

Browse files
committed
refactor: adjust login mode handling to default to LOCAL when not using LDAP
1 parent 3c885dd commit 7de8afc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/views/chat/user-login/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ function redirectAuth(authType: string, needMessage: boolean = false) {
346346
}
347347
348348
function changeMode(val: string) {
349-
loginMode.value = val === 'LDAP' ? val : ''
349+
loginMode.value = val === 'LDAP' ? val : 'LOCAL'
350+
if (val !== 'LOCAL') {
351+
loginMode.value = val
352+
}
350353
if (val === 'QR_CODE') {
351354
loginMode.value = val
352355
showQrCodeTab.value = true

0 commit comments

Comments
 (0)