auth.checkPassword #

Try logging to an account protected by a 2FA password.

Layer 223

auth.authorization#2ea2c0d4 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int future_auth_token:flags.2?bytes user:User = auth.Authorization;
auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;
---functions---
auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;

Parameters #

NameTypeDescription
passwordInputCheckPasswordSRPThe account's password (see SRP)

Result #

auth.Authorization

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
500AUTH_KEY_UNSYNCHRONIZEDInternal error, please repeat the method call.
400PASSWORD_HASH_INVALIDThe provided password hash is invalid.
400SRP_ID_INVALIDInvalid SRP ID provided.
400SRP_PASSWORD_CHANGEDPassword has changed.

Two-factor authentication #

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