fix: redirect login to /de/fahrzeuge instead of non-existent /dashboard

This commit is contained in:
2026-07-19 16:49:50 +02:00
parent 4cfe8ad673
commit 2242a12094
+1 -1
View File
@@ -41,7 +41,7 @@ function LoginForm() {
const tokens = await apiLogin(email, password); const tokens = await apiLogin(email, password);
setTokens(tokens); setTokens(tokens);
showToast(t('login.success'), 'success'); showToast(t('login.success'), 'success');
router.push('/dashboard'); router.push('/de/fahrzeuge');
} catch (err) { } catch (err) {
const message = (err as any)?.error?.message || t('login.error.invalidCredentials'); const message = (err as any)?.error?.message || t('login.error.invalidCredentials');
showToast(message, 'error'); showToast(message, 'error');