Skip to main content

Module email_ownership_verification

Module email_ownership_verification 

Source
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§

VerificationEmailOutcome

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.