You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admin users should authenticate using both a password and an email verification code, combining the two existing auth methods into a single two-step flow.
Current Behavior
Regular users: Login with email → receive 6-digit code → enter code
Admin users: Login with username + password only (no email verification)
Desired Behavior
Admin login should require two factors:
Admin enters email/username and password
If password is correct, a 6-digit verification code is sent to the admin's email
Admin enters the code to complete login
This adds an extra layer of security for admin accounts by combining password authentication with email-based verification.
Acceptance Criteria
Admin login flow requires both password and email verification code
Password is validated first before sending email code
Email code is sent to the admin's registered email address
JWT is only issued after both password and code are verified
Frontend admin login UI updated to support the two-step flow
Existing regular user email-only login remains unchanged
Error messages don't leak whether password or code was incorrect
Technical Notes
Backend: Modify admin auth endpoint in src/backend/main.py or auth router
Frontend: Update admin login component to add code entry step
Reuse existing email sending infrastructure from regular user login flow
Activity
vybe commentedon Jun 22, 2026
/claim
github-actions commentedon Jun 22, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/82-<short-slug>Fixes #82docs(feature-flows): index row for first-run intake + admin email log…
fix(setup): de-ambiguate email regex to clear CodeQL polynomial-ReDoS (…
Merge pull request #1307 from Abilityai/feature/38-first-run-intake-a…
Release: v0.8.0 (#1529)
feat(setup): first-run operator intake + admin email login (abilityai…
docs(user-docs): sync to dev state 2026-07-03 — v0.7.0 What's New + p…
docs: correct the first-run setup instructions (#1791) (#1805)
fix(auth): a sign-in email is proven, unique, and written in one plac…