pub async fn get_by_token_any_state(
conn: &mut PgConnection,
token: &DbSecret,
) -> ModelResult<Option<StudentNumberVerificationToken>>Expand description
Looks up a token in any state, so the landing page can tell an expired link from a spent one.