Skip to main content

verify_email_ownership

Function verify_email_ownership 

Source
pub async fn verify_email_ownership(
    user: AuthUser,
    pool: Data<PgPool>,
    payload: Json<VerifyEmailOwnershipPayload>,
    app_conf: Data<ApplicationConfiguration>,
) -> ControllerResult<Json<VerifyEmailOwnershipResult>>
Expand description

POST /api/v0/main-frontend/email-verification/verify - Spends a mailed code and records the proof.

Authenticated and scoped to the caller’s own account, so the code is the only secret involved and it never has to identify anybody on its own.