feat(auth): verify email addresses before login #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/email-verification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
feat/oidc); second of three auth changes (OIDC, email verification, then 2FA / WebAuthn).Changes
TRAEFIK_CONTROL_EMAIL_VERIFICATION=requiredoroff; defaults torequiredwhen SMTP is configured, otherwiseoff;requiredwithout SMTP refuses to start (all six combinations exercised).UserAuth.log_in_user, which now makes no session for an unconfirmed address and mails a link instead. Existing sessions of unconfirmed users stop working (Accounts.get_user_by_session_token).TraefikControl.Mailextracted from the alert delivery code (sender parsing, sending,configured?);Alerts.email_configured?is replaced byMail.configured?.Verification
mix format --check-formatted,mix compile --warnings-as-errors,mix credo --strict,mix dialyzer: clean.mix test: 1204 passed on SQLite and on PostgreSQL (confirmation context, web flows including OIDC and registration, throttle, expiry, wrong-address, single use, crashing and refusing mail adapters).