Reset the one-time password of an account
Это содержимое пока не доступно на вашем языке.
resetAccountOneTimePassword generates a new one-time password for the self-care portal login of an account and returns it. Use it for a “forgot password” flow: send the password to the user, who logs in with it and sets a new one. The account must belong to the authenticated customer.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
username |
string | yes | Web login of the account |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
password |
string | The new one-time password |
Example
Section titled “Example”call("resetAccountOneTimePassword", {"username": "1001"}){"result": "OK", "password": "Hd83kQpz"}Related
Section titled “Related”- Authenticate an account
- Update an account: set the new
web_password - Reset the one-time password of a customer