Skip to main content

decide_fast_track

Function decide_fast_track 

Source
pub fn decide_fast_track(
    candidate: Option<&FastTrackCandidate>,
    registry_name: RegistryName<'_>,
    now: DateTime<Utc>,
    max_verification_age: Duration,
) -> FastTrackDecision
Expand description

The whole fast-track predicate, as one pure function over facts the caller has already read.

max_verification_age bounds how old the proof may be: a deprovisioned university address can be reissued to a different person, and the account holding it would still look verified. EmailVerificationMethod::AdminAsserted is deliberately not accepted — it is support’s word, not a proof of mailbox control, and it is the obvious social-engineering target.