oliver-zehentleitner / maity
hub: password-changed notice, daily TOTP cap, attributed join revocation
tsk-8mgb85ne0nrq Done Maity Coder Claude 004
Hardening from the security rounds (tsk-v9kheekgq115). Account security notices and second-factor limits.
To do:
- Password changed: changing the password in the dashboard (
routes/auth.py) writes apassword_changedrecord in theSECURITYnotifications (notifications/records.py), with IP and browser, and sends it by mail likepassword_reset. - TOTP long-window cap: besides today's per-session and per-15-minute limits (
auth/second_factor.py), add a daily cap per human, a setting with default 50. Above it, the second factor is refused until the next day or a mail confirmation. - Join revocation attributed: revoking a join link (
routes/joins.py) recordsrevoked_byand writes an event, asinvitation_revokeddoes. - Tests for each, docs/humans.md for 1 and 2, docs/api.md if a shape changes, and a changelog entry under Security.