POST api/Account/ForgetPassword
忘记密码
请求信息(Request)
URI 参数
None.
Body 参数
密码修改信息
ForgetPasswordBindingModel名称 | 描述 | 类型 | 备注 |
---|---|---|---|
PhoneNumber |
手机号码 |
string |
Required Matching regular expression pattern: ^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$ |
VerifyCode |
验证码 |
string |
Required |
NewPassword |
新密码 |
string |
Required Data type: Password String length: inclusive between 6 and 100 |
ConfirmPassword |
确认新密码 |
string |
Data type: Password |
请求格式
application/json, text/json
Sample:
{ "PhoneNumber": "sample string 1", "VerifyCode": "sample string 2", "NewPassword": "sample string 3", "ConfirmPassword": "sample string 4" }
application/xml, text/xml
Sample:
<ForgetPasswordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.API.Models"> <ConfirmPassword>sample string 4</ConfirmPassword> <NewPassword>sample string 3</NewPassword> <PhoneNumber>sample string 1</PhoneNumber> <VerifyCode>sample string 2</VerifyCode> </ForgetPasswordBindingModel>
application/x-www-form-urlencoded
Sample:
响应信息(Response)
资源描述
RequestResult名称 | 描述 | 类型 | 备注 |
---|---|---|---|
Status |
状态(0:成功,1:失败) |
integer |
None. |
Message |
导致失败的相关消息 |
string |
None. |
Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{ "Status": 1, "Message": "sample string 2", "Total": 3 }
application/xml, text/xml
Sample:
<RequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application"> <Message>sample string 2</Message> <Status>1</Status> <Total>3</Total> </RequestResult>