fix: auth redirects and routing context issues

This commit is contained in:
2026-06-13 10:22:00 +02:00 Unverified
parent 1dbbfbaa2e
commit ca866404af
6 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ const handleSubmit = async () => {
if (res.ok) {
await syncUser()
await router.push('/dashboard')
await router.push('/me')
}
} catch (error: any) {
errorMessage.value = error.data?.message || 'Errore. Verifica la password attuale.'
-1
View File
@@ -41,7 +41,6 @@ const handleVerifyOtp = async () => {
try {
const res = await verifyOtp({ email: email.value, code: otpCode.value })
await handleLoginSuccess(res.token)
router.push('/dashboard')
} catch (err: any) {
errorMessage.value = 'Codice OTP non valido o scaduto.'
} finally {