fix: redirect to dashboard after successful login
All checks were successful
Deploy Development / deploy (push) Successful in 47s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s

LoginScreen was not navigating after login, leaving users on empty page.
Now explicitly redirects to '/' (dashboard) after successful login.

This fixes the "empty page after first login" issue.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-03-21 12:09:37 +01:00
parent 2e68b29d9c
commit 1521c2f221

View File

@ -33,6 +33,8 @@ export default function LoginScreen() {
setLoading(true); setError(null) setLoading(true); setError(null)
try { try {
await login({ email: email.trim().toLowerCase(), password: password }) await login({ email: email.trim().toLowerCase(), password: password })
// Redirect to dashboard after successful login
window.location.href = '/'
} catch(e) { } catch(e) {
setError(e.message || 'Ungültige E-Mail oder Passwort') setError(e.message || 'Ungültige E-Mail oder Passwort')
} finally { setLoading(false) } } finally { setLoading(false) }