fix: send 'password' instead of 'pin' in login request
Frontend was sending {email, pin} but backend expects {email, password}.
This caused 422 Unprocessable Entity errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ad433a470f
commit
6f0f1ae9b4
|
|
@ -32,7 +32,7 @@ export default function LoginScreen() {
|
||||||
}
|
}
|
||||||
setLoading(true); setError(null)
|
setLoading(true); setError(null)
|
||||||
try {
|
try {
|
||||||
await login({ email: email.trim().toLowerCase(), pin: password })
|
await login({ email: email.trim().toLowerCase(), password: password })
|
||||||
} 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