POST api/User/editUserPassword
修改密码
Request Information
URI Parameters
None.
Body Parameters
editPasswordPost| Name | Description | Type | Additional information |
|---|---|---|---|
| oldpasswordhash |
旧密码加密后的字符串,加密规则:SHA1(user.Name + "ahsxrj" + user.Password) |
string |
None. |
| newpasswordhash |
aes加密后的字符串,密码原始长度范围:6~16 |
string |
None. |
| newpasswordhash2 | string |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"oldpasswordhash": "sample string 1",
"newpasswordhash": "sample string 2",
"newpasswordhash2": "sample string 3",
"tel": "sample string 4",
"token": "sample string 5",
"uid": 1
}
application/xml, text/xml
Sample:
<editPasswordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 4</tel> <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 5</token> <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid> <newpasswordhash>sample string 2</newpasswordhash> <newpasswordhash2>sample string 3</newpasswordhash2> <oldpasswordhash>sample string 1</oldpasswordhash> </editPasswordPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResult| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <code>1</code> <msg>sample string 2</msg> </BaseResult>