Reset a customer's one-time password
Цей контент ще не доступний вашою мовою.
resetCustomerOneTimePassword generates a new one-time password for a web login and returns it, so you can send it to a user who forgot the password. You can reset it for your own web users and for the web users of your direct sub-customers; the root customer can reset it for any web user.
The one-time password is valid until the end of the day it was generated, by the switch’s clock. The regular password keeps working. A sign-in with the one-time password is reported by authCustomer as fault 410.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
web_login |
string | yes | Web Login of the customer or of one of its web users |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
password |
string | The new one-time password, 8 characters |
Example
Section titled “Example”call("resetCustomerOneTimePassword", {"web_login": "acme-web"}){"result": "OK", "password": "k7Pq2xVm"}Errors
Section titled “Errors”| faultCode | faultString | Cause |
|---|---|---|
402 |
Parameter web_login is required |
web_login is missing |
403 |
Customer not found |
No web user with this login belongs to you or to your direct sub-customers |
Related
Section titled “Related”- Authenticate a customer
- Update a customer: set a new
web_password - Reset an account’s one-time password