Skip to main content

claim_student_number_verification_token

Function claim_student_number_verification_token 

Source
pub async fn claim_student_number_verification_token(
    user: AuthUser,
    pool: Data<PgPool>,
    path: Path<String>,
) -> ControllerResult<Json<ClaimStudentNumberVerificationTokenResult>>
Expand description

POST /api/v0/main-frontend/credit-registrations/student-number-verifications/{token}/claim - Spends a mailed link and links the student number to the signed-in account.

Any signed-in account may claim any valid token: holding it proves control of the Sisu-held mailbox, and the session says which of our accounts the person wants to use.