Change login password

1. API Description

This API is used to change the user's login password. The current password must be input when changing the password.

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

Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
password Yes String The current password which is encrypted with sha256
new-password Yes String The new password which is encrypted with sha256

3. Output Parameters

Name Type Description
status Int Status code

4. Example

Changing the current password.

Input Example
{
    "password":"c4ca4238a0b923820dcc509a6f75849b",
    "new-password":"c1c224b03cd9bc7b6a86d77f5dace40191766c485cd55dc48caf9ac873335d6f"
}
Output Example
{
    "status": 0
}

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
39 MISMATCH Wrong current password

results matching ""

    No results matching ""