Skip to main content

handle_mfa_enable

Function handle_mfa_enable 

Source
pub async fn handle_mfa_enable(
    ctx: &ReqCtx,
    code: &str,
    csrf: Option<&str>,
) -> ApiResponse
Expand description

Confirm the code, enable MFA, generate backup codes, and show them once.