fix: redirect immediately after login to prevent form flash in app shell

This commit is contained in:
kolaente
2026-02-06 10:14:52 +01:00
parent 77b8403c24
commit 8bccf21a81

View File

@@ -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