Commit e2f8f7d
fix(LoginScreen): surface Hebrew error for bad credentials and network failures
Map login failure by HTTP status:
- 401 -> "סיסמא או שם משתמש לא נכונים"
- 0/undefined (network) -> "לא ניתן להתחבר לשרת, נסו שוב מאוחר יותר"
- 5xx -> "שגיאת שרת, נסו שוב בעוד מספר רגעים"
- other -> fall back to the error message, or a generic login error
Replaces the catch-all that leaked raw backend messages (or bare
"שגיאה בהתחברות") for wrong-password attempts.1 parent 7a5f84a commit e2f8f7d
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
0 commit comments