refactor: adjust login mode handling to default to LOCAL when not using LDAP
parent
3c885ddf3c
commit
7de8afc3a7
|
|
@ -346,7 +346,10 @@ function redirectAuth(authType: string, needMessage: boolean = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeMode(val: string) {
|
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') {
|
if (val === 'QR_CODE') {
|
||||||
loginMode.value = val
|
loginMode.value = val
|
||||||
showQrCodeTab.value = true
|
showQrCodeTab.value = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue