Seefs
00056f5db7
Merge commit from fork
* fix(auth): enforce exact email matching and stored address on password reset
Enforce exact normalized email comparison in Go in GetUniqueUserByEmail (and FillUserByEmail) without premature SQL LIMIT 2, preventing accent-insensitive database collations from matching look-alike email addresses.
Send password reset emails, key reset codes, and build query-escaped reset URLs strictly using the stored normalized user email, revoking generated codes if delivery fails. Atomically verify and consume reset tokens in constant time via common.ConsumeCodeWithKey to prevent replay, and decode the reset payload via common.DecodeJson.
Add regression tests covering look-alike email rejection, stored-email delivery, single-use token enforcement, failed delivery cleanup, and token expiry (OWASP ASVS v4.0.3 2.5.1/2.5.2/2.5.3/2.5.6).
* fix(auth): preserve reset recipients and enforce exact email lookup at login
2026-11-27 19:11:25 +08:00
..
2026-10-20 22:28:33 +08:00
2026-09-06 22:49:00 +08:00
2026-09-15 00:06:42 +08:00
2026-11-12 20:50:58 +08:00
2026-09-14 13:19:46 +08:00
2026-10-09 21:39:51 +08:00
2026-11-12 20:19:51 +08:00
2026-11-12 20:19:51 +08:00
2026-11-02 19:54:34 +08:00
2026-10-16 22:30:06 +08:00
2026-09-06 22:49:00 +08:00
2026-10-22 13:06:58 +08:00
2026-11-07 15:53:18 +08:00
2026-11-07 15:53:18 +08:00
2026-10-19 20:22:37 +08:00
2026-10-19 20:22:37 +08:00
2026-10-17 23:24:33 +08:00
2026-11-23 03:22:21 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-11-12 20:50:58 +08:00
2026-10-09 21:39:51 +08:00
2026-11-12 20:50:58 +08:00
2026-11-12 20:19:51 +08:00
2026-11-12 20:19:51 +08:00
2026-10-09 21:39:51 +08:00
2026-11-26 00:29:07 +08:00
2026-10-09 21:39:51 +08:00
2026-11-23 03:22:21 +08:00
2026-10-07 21:26:35 +08:00
2026-09-06 22:49:00 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-09-15 01:07:07 +08:00
2026-09-18 11:24:30 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-09-08 20:55:03 +08:00
2026-10-15 15:49:45 +08:00
2026-11-09 14:36:38 +08:00
2026-10-16 22:30:06 +08:00
2026-10-16 22:30:06 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-11-27 19:11:25 +08:00