Reset password

1. API Description

This API is used to reset the password, and it does not need to input the current password.

Request mode: POST [ip]/api/user/set-password

Administrator Rights Logged-in
Yes Yes

2. Input Parameters

Name Required Type Description
username Yes String The user name, obtained using Get system user list
password Yes String The password which is encrypted with sha256

3. Output Parameters

Name Type Description
status Int Status code
code String Status description

4. Example

Resetting the "test" user's password.

Input Example
{
    "username":"test",
    "password":"c4ca4238a0b923820dcc509a6f75849b"

}
Output Example
{
    "status": 0,
    "code": "Success"
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
7 MW_STATUS_INVALID_ARG Missing required parameters
16 NOT_EXIST The user does not exist
31 NOT_PERMITTED Only administrators have permission

results matching ""

    No results matching ""

    results matching ""

      No results matching ""