Expand description
Minting and mailing email-ownership verification codes.
Signup and every writer of user_details.email goes through here, so the code, the mail and the
resend cap cannot drift between them.
Enums§
Constants§
- FALLBACK_
EMAIL_ LANGUAGE - Language for the automatic sends, which have no UI language to work from.
- MAX_
CODE_ ATTEMPTS - Wrong guesses one code tolerates before it is retired. Six digits are only safe with a cap.
- MIN_
RESEND_ 🔒INTERVAL_ MINUTES - Mail-bomb guard, not a quota: how soon after mailing a code we refuse another.
- PURPOSE 🔒
Functions§
- queue_
verification_ email - Mails a fresh verification code to the address the account holds now.
- queue_
verification_ email_ best_ effort - Queues the mail without letting a failure propagate: no signup or email change may be rolled back because the mail queue or the template is unavailable.