pub async fn claim_student_number_verification_token(
user: AuthUser,
pool: Data<PgPool>,
path: Path<String>,
payload: Json<ClaimStudentNumberVerificationTokenRequest>,
tmc_client: Data<TmcClient>,
app_conf: Data<ApplicationConfiguration>,
) -> 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. The account’s name is set to Sisu’s in the same transaction, with the first name the student picked, and pushed to TMC.