Commit Graph

3 Commits

Author SHA1 Message Date
Georges-Antoine Assi
012ae2fa1e refactor(user): confirm an email inside the single user update
pr-ready step 3 (simplify). The confirmation now rides the one
apply_user_update transaction, guarded by expected_email, so a later 400
or 403 rolls it back and the edit audit sees it without a post-write
patch. update_user resets trust whenever it writes an email the caller
doesn't vouch for, replacing trust_email. Tests share the dialog's apply,
save and emailField helpers, and drop two redundant local imports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:30:48 -05:00
Sam Dornan
3204037797 fix(auth): validate reset passwords and make the last-admin guard atomic, with tests (#5106) 2026-10-04 10:18:15 -04:00
Sam Dornan
fed6fc9172 refactor(db): follow-ups to the derived-state fixes (#4969) 2026-09-30 19:00:30 -04:00