Files
backend_fiesta/services
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-09-03 11:21:12 +05:30
2026-09-03 11:21:12 +05:30
2026-08-31 15:51:36 +05:30
2026-08-31 15:51:36 +05:30
2026-08-29 16:45:47 +05:30
2026-08-31 12:33:10 +05:30
2026-08-31 14:59:48 +05:30
2026-05-25 11:52:26 +05:30
2026-05-25 11:52:26 +05:30
2026-09-01 13:53:22 +05:30
2026-09-01 13:17:52 +05:30
2026-07-30 17:25:09 +05:30
2026-09-01 12:01:43 +05:30
2026-09-01 12:01:43 +05:30
2026-09-09 15:44:27 +05:30
2026-09-07 17:53:35 +05:30
2026-09-03 16:23:29 +05:30
2026-09-03 16:23:29 +05:30
2026-09-01 12:01:43 +05:30
2026-09-01 12:01:43 +05:30
2026-09-08 19:21:23 +05:30
2026-09-08 19:21:23 +05:30
2026-09-09 15:44:27 +05:30