fix: redirect immediately after login to prevent form flash in app shell
This commit is contained in:
parent
77b8403c24
commit
8bccf21a81
|
|
@ -211,6 +211,7 @@ async function submit() {
|
|||
try {
|
||||
await authStore.login(credentials)
|
||||
authStore.setNeedsTotpPasscode(false)
|
||||
redirectIfSaved()
|
||||
} catch (e) {
|
||||
if (e.response?.data.code === 1017 && !credentials.totpPasscode) {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue