Final Feature 9c #10
|
|
@ -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) }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user