Layer 220
AuthCheckPassword
Try logging to an account protected by a 2 FA password.
method
Users
auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;
Parameters
| Name | Type | Description |
|---|---|---|
| Password | InputCheckPasswordSRP | The account's password (see SRP ) |
Returns
auth.AuthorizationPossible Errors
| Code | Type | Description |
|---|---|---|
| 500 | AUTH_KEY_UNSYNCHRONIZED | Internal error, please repeat the method call. |
| 400 | PASSWORD_HASH_INVALID | The provided password hash is invalid. |
| 400 | SRP_ID_INVALID | Invalid SRP ID provided. |
| 400 | SRP_PASSWORD_CHANGED | Password has changed. |
Gogram Example
// AuthCheckPassword - positional arguments result, err := client.AuthCheckPassword(&tg.InputCheckPasswordSrp{}) if err != nil { // handle error } // result is *tg.AuthAuthorization