Please update to the latest patch version to use it.
Basics
POST /api/v2/user/reset_password
Description: Reset the password of members. You can choose whether to unbind the phone number or not when resetting.
Request Parameters
Optional Body parameters can be omitted, and the parameter format is JSON.
Name | Type | Necessary | Default | Example | Description |
---|---|---|---|---|---|
user_id | text | Yes | - | "user_xxxx" | User id of the member whose password needs to be reset. |
unbind_phone | text | No | 0 | 1 | Whether to unbind the phone number while resetting the password. 0:No(default) 1: Yes |
Return Data
// operation succeeded
{
"code": 0,
"data": {
"user_id":"xxx", //user id of the memebr
"email":"xxxxx", //account email of the member
"new_password":"xxxxxx" //password after resetting
},
"msg": "Success"
}
// operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}