verify_auth

The user/verify_auth command is used to receive a verification code to the specified address. If the address is valid, the code is sent to it and an empty string is returned in the response. To complete two-factor authentication and verify the code, use the verify_code request.

Copied!
svc=user/verify_auth&params={"userId":<long>,
			     "type":<int>,
			     "destination":"<text>"}

Parameters

The required parameters are marked with an asterisk (*).

Name

Description

userId*

User ID.

type*

Address type (0 for sms, 1 for email).

destination*

Email or phone number.

Response

Copied!
{ }

Error code

Error codeDescription
7Failed to fetch user with ACL (ADF_ACL_ITEM_EDIT_PROPERTIES), or incorrect parameters provided
6Failed to send the authentication code.
Download PDF file
Download Word document

See also