Differences
This shows you the differences between two versions of the page.
|
|
— |
en:sidebar:remoteapi:apiref:user:verify_auth [15/05/2018 17:29] (current) stan created |
| {{indexmenu_n>0.1}} |
| ====== Two-factor authentication adress verification ====== |
| |
| Command **user/verify_auth** - sends code to specified address and returns it, so you can check that address is valid. |
| <code javascript> |
| svc=user/verify_auth¶ms={"userId":<long>, |
| "type":<uint>, |
| "destination":<text>} |
| </code> |
| |
| ===== Parameters ===== |
| ^ Name ^ Description ^ |
| | userId | user ID | |
| | type | address type (0 - sms, 1 - email) | |
| | destination | email or phone number | |
| |
| ===== Response ===== |
| <code javascript> |
| { |
| "code":<text> /* code */ |
| } |
| </code> |