@fuyb1986
2017-05-18T06:54:44.000000Z
字数 868
阅读 562
冰橙课件
Method | Resource URL |
---|---|
GET | /api/account/reset_password_request/ |
Name | Descript | Required | Default |
---|---|---|---|
username | 用户名 | YES | |
key | 图片验证码 | YES | |
hashkey | captcha hash key | Yes |
curl -X GET -H 'Content-Type: application/json' http://localhost/api/account/reset_password_request/?username=15716098745&key=abcd&haskey=zcuq6z6pnwqirwuq49r9oe06tr5zxw6v
{
"status": 0,
"message": "",
"reset_password": "true"
}
用收到的验证码重置密码,获取新的 token,其它登录token全部失效。
Method | Resource URL |
---|---|
POST | /api/account/reset_password/ |
Name | Description | Required | Default |
---|---|---|---|
username | 用户名 | YES | |
password | 密码 | YES | |
verification_code | 验证码 | YES |
{
"username": "13245678910",
"password": "AT4Fvk3N",
"verfication_code": "617346"
}
curl -X PUT -H 'Content-Type: application/json' --data '{....}' http://localhost/api/account/reset_password/
{
"token": "9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
}