auth.recoverPassword

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.

 Method schema is available as of layer 131. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
code string Code received via email
new_settings flags.0?account.PasswordInputSettings New password

Result

auth.Authorization

Possible errors

Code Type Description
400 CODE_EMPTY The provided code is empty.
400 NEW_SETTINGS_INVALID The new password settings are invalid.

Related pages

Two-factor authentication

How to login to a user's account if they have enabled 2FA, how to change password.

auth.requestPasswordRecovery

Request recovery code of a 2FA password, only for accounts with a recovery email configured.