recover_authentication_password

Function recover_authentication_password 

Source
pub async fn recover_authentication_password(
    recovery_code: String,
    new_password: String,
    new_hint: String,
    client_id: i32,
) -> Result<(), Error>
Expand description

Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword

ยงArguments

  • recovery_code - Recovery code to check
  • new_password - New 2-step verification password of the user; may be empty to remove the password
  • new_hint - New password hint; may be empty
  • client_id - The client id to send the request to