Skip to content

Nadhil - #82

Open
nadhil7 wants to merge 3 commits into
mainfrom
nadhil
Open

nadhil7 wants to merge 3 commits into
mainfrom
nadhil

Conversation

@nadhil7

@nadhil7 nadhil7 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

nadhil7 and others added 3 commits September 14, 2026 20:40
Every employee login required an OTP over Gmail, hitting Gmail's rate
limit. Employee login now trusts a browser for 1 day after its first
OTP verification (device token cookie, hashed at rest), so only the
first login of the day needs OTP. Admin login is untouched — it has
no OTP step in this codebase today.

- trusted_devices table + revoke endpoints (single + all)
- daily cron sweep of expired rows
- dev mail now goes through Ethereal instead of Gmail, avoiding the
  rate limit locally, falling back to a no-op transport if Ethereal
  creds aren't configured yet
- frontend: login skips the OTP screen when the server logs in
  directly; new "Trusted Devices" tab in the sessions dialog

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant