Hyeonsang Cho
2cc30714c9
fix(auth): answer 400 when a new email is registered during change-password ( #8319 )
...
change-password checks that the new email is free, hashes the new
password, then writes. A /register of the same address that commits in
between makes update_user's commit hit the users.email unique index,
and the IntegrityError reached the client as an unhandled 500.
update_user now reports an email index violation as ValueError, like
create_user does for the same race, and the route maps it to the
existing 400 email_already_exists. Other integrity errors propagate.
2026-11-17 22:02:31 +08:00
..
2026-11-17 22:02:31 +08:00
2026-10-06 15:32:46 +08:00
2026-11-12 09:09:44 +08:00
2026-11-17 22:02:31 +08:00
2026-06-02 10:03:28 +08:00
2026-10-31 07:21:57 +08:00
2026-10-31 07:21:57 +08:00
2026-06-30 18:58:02 +08:00
2026-11-16 15:59:09 +08:00
2026-11-17 15:59:09 +08:00
2026-06-12 10:20:38 +08:00
2026-10-20 22:23:47 +08:00
2026-11-17 22:01:07 +08:00
2026-10-17 09:41:15 +08:00
2026-09-25 15:24:09 +08:00
2026-10-20 23:17:00 +08:00
2026-11-13 14:31:29 +08:00
2026-10-20 11:50:46 +08:00
2026-11-13 14:22:58 +08:00
2026-11-09 17:06:05 +08:00
2026-09-11 13:45:52 +08:00
2026-11-14 22:10:33 +08:00
2026-10-21 22:03:21 +08:00
2026-09-23 18:29:12 +08:00
2026-09-23 15:24:13 +08:00
2026-09-27 20:28:05 +08:00
2026-10-24 21:50:27 +08:00
2026-03-29 23:53:23 +08:00
2026-08-27 09:12:37 +08:00
2026-09-25 14:15:59 +08:00
2026-09-23 15:24:13 +08:00
2026-10-25 00:12:26 +08:00
2026-11-08 22:00:23 +08:00
2026-08-25 07:49:38 +08:00
2026-03-25 16:28:33 +08:00
2026-04-03 16:03:06 +08:00
2026-10-25 23:22:02 +08:00
2026-11-11 20:59:05 +08:00
2026-11-15 21:01:09 +08:00
2026-06-03 22:02:27 +08:00
2026-10-07 19:06:59 +08:00
2026-11-15 21:28:36 +08:00
2026-11-17 09:59:18 +08:00
2026-11-11 19:36:32 +08:00
2026-03-14 22:55:52 +08:00
2026-09-06 22:30:26 +08:00
2026-09-23 15:24:13 +08:00
2026-05-29 11:36:45 +08:00
2026-11-13 14:22:58 +08:00