refactor: adjust login mode handling to default to LOCAL when not using LDAP

This commit is contained in:
wxg0103 2025-08-06 14:38:20 +08:00
parent 3c885ddf3c
commit 7de8afc3a7

View File

@ -346,7 +346,10 @@ function redirectAuth(authType: string, needMessage: boolean = false) {
}
function changeMode(val: string) {
loginMode.value = val === 'LDAP' ? val : ''
loginMode.value = val === 'LDAP' ? val : 'LOCAL'
if (val !== 'LOCAL') {
loginMode.value = val
}
if (val === 'QR_CODE') {
loginMode.value = val
showQrCodeTab.value = true