Skip to main content

get_by_token_any_state

Function get_by_token_any_state 

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