fix: send 'password' instead of 'pin' in login request
All checks were successful
Deploy Development / deploy (push) Successful in 53s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

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:
Lars 2026-03-18 12:04:36 +01:00
parent ad433a470f
commit 6f0f1ae9b4

View File

@ -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) }