Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:user:update_auth_params [14/05/2018 17:25]
stan created
en:sidebar:remoteapi:apiref:user:update_auth_params [15/05/2018 17:33]
stan
Line 1: Line 1:
-{{indexmenu_n>​0.1}} +{{indexmenu_n>​0.2}} 
-====== ​Two-factor ​authentication adress verification ​======+====== ​Update two-factor ​autentification settings. ​======
  
-Command ​**user/verify_auth** - sends code to specified address and returns it, so you can check that address is valid.+Use command ​**user/update_auth_params** to change two-factor autentification settings.
 <code javascript>​ <code javascript>​
-svc=user/verify_auth&​params={"​userId":<​long>,​ +svc=user/update_auth_params&​params={"​userId":<​long>,​ 
-      "​type":<​uint>, +     ​"​type":<​text>, 
-      "destination":<​text>​}+     ​"phone":<​text>​}
 </​code>​ </​code>​
  
Line 12: Line 12:
 ^ Name ^ Description ^ ^ Name ^ Description ^
 | userId | user ID | | userId | user ID |
-| type | address ​type (0 - sms, 1 - email) | +| type | type ( 0 - none, 1 - email, 2 - SMS ) | 
-destination ​email or phone number |+phone | phone number ​(if type:​2) ​|
  
 ===== Response ===== ===== Response =====
 <code javascript>​ <code javascript>​
 { {
- "code":<​text>​ /* code */+    ​"type":<​uint>,​ 
 +    "phone":<​text>​
 } }
 </​code>​ </​code>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam