Files
romm/backend/tests/handler
Sam Dornan 0511e47fa6 fix(security): revoke on both sides of the credential write
Revoking only before the write left a wider hole than the one it closed: the
old password stays good until the write commits, so a login starting in that
window authenticates and writes a session unconditionally, having no existing
id for the `XX` guard to refuse. Revoking only after the write cannot abort a
change Redis was unreachable for. Doing both keeps each property.

What remains is a login that read the old hash before the first pass and
writes after the second, which needs the per-user revocation generation rather
than an ordering change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NouZquWDxNBqxYyu2E2GF8
2026-09-20 16:33:14 +00:00
..
2026-03-22 16:30:14 -04:00