Final Feature 9c #10
|
|
@ -33,6 +33,8 @@ export default function LoginScreen() {
|
|||
setLoading(true); setError(null)
|
||||
try {
|
||||
await login({ email: email.trim().toLowerCase(), password: password })
|
||||
// Redirect to dashboard after successful login
|
||||
window.location.href = '/'
|
||||
} catch(e) {
|
||||
setError(e.message || 'Ungültige E-Mail oder Passwort')
|
||||
} finally { setLoading(false) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user