fix: redirect login to /de/fahrzeuge instead of non-existent /dashboard
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user