Files
backend_fiesta/repositories
Suriyakumarvijayanayagam 1633617dc4 Stop reporting a failed login lookup as "Invalid Email"
GetUserByAuthname / GetUserByContactNo / GetUserLogin discarded the
Scan error, so a database that could not answer — down, pool exhausted,
or booted without its config (2026-07-20) — came back as uid 0 and every
user was told their email was wrong.

One lookup, GetUserLogin, now returns an error; sql.ErrNoRows is "not
found" and anything else reaches the service, which answers 500 "Login
is temporarily unavailable" and logs the cause. 409 "Invalid Email" is
unchanged for a genuine no-match: the console reads that exact shape as
"not registered". NULL password/role columns scan through sql.Null* so
they do not become 500s.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 17:04:33 +05:30
..
2026-08-31 15:51:36 +05:30
2026-08-31 15:51:36 +05:30
2026-08-31 14:59:48 +05:30
2026-08-03 15:12:13 +05:30
2026-09-08 15:41:31 +05:30
2026-09-03 19:12:03 +05:30
2026-09-09 15:44:27 +05:30
2026-09-09 15:44:27 +05:30
2026-08-27 11:17:17 +05:30
2026-09-08 11:49:34 +05:30
2026-09-02 13:11:01 +05:30
2026-09-03 15:44:09 +05:30
2026-08-28 13:19:13 +05:30
2026-09-03 10:43:05 +05:30
2026-09-09 15:44:27 +05:30
2026-05-25 11:52:26 +05:30