Commit Graph

10 Commits

Author SHA1 Message Date
b46902f51b auto mail generation 2026-09-29 16:53:21 +05:30
276e12beb9 login fix 2026-09-25 10:36:38 +05:30
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
8cc567c89b daily merchant app login fix 2026-09-11 11:10:25 +05:30
1e3fe88e87 user accounts 2026-09-01 13:53:22 +05:30
ab74e70ba5 login bug 2026-09-01 13:17:52 +05:30
Suriya
7e9b3f98ba stores login fix 2026-07-09 18:03:44 +05:30
Suriya
135df9fd18 store users login 2026-07-07 12:09:34 +05:30
abe2cb997b stock request table created 2026-07-04 17:49:54 +05:30
Gokul
0d42ac84e1 initial commit 2026-05-25 11:52:26 +05:30