Function tdlib::functions::recover_password
source · pub async fn recover_password(
recovery_code: String,
new_password: String,
new_hint: String,
client_id: i32
) -> Result<PasswordState, Error>
Expand description
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up
Arguments
recovery_code
- Recovery code to checknew_password
- New 2-step verification password of the user; may be empty to remove the passwordnew_hint
- New password hint; may be emptyclient_id
- The client id to send the request to