Skip to main content

reset_totp

Function reset_totp 

Source
pub async fn reset_totp(
    user: &mut AdminUser,
    database: Arc<Database>,
    trail: &impl OperatorTrail,
) -> Result<(), Error>
Expand description

Removes user’s second factor and every recovery code on another operator’s say-so, ending their sessions: there is no session of theirs to keep, the change being made from somewhere they are not signed in. They are told, since they did not do it.