Skip to main content

link_token_student_number

Function link_token_student_number 

Source
async fn link_token_student_number(
    conn: &mut PgConnection,
    verification_token: &StudentNumberVerificationToken,
    current_link: Option<VerifiedStudentNumber>,
    user_id: Uuid,
) -> Result<i64, ControllerError>
Expand description

Links the token’s student number to user_id, replacing current_link, and returns how many registrations that unblocked.