POST api/UnPos/Shop/User/ChangePwd
使用旧密码,设置新密码。 设置成功后,新的HAWK认证凭据中的KEY通过Tag值返回。
Request Information
URI Parameters
None.
Body Parameters
MerchantUserChangePwdParmName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID。 |
integer |
Required |
UserCode |
用户代码。 |
integer |
Required |
NewPwd |
密码的密文。 密码=UPPER_MD5(用户输入的密码) 加密 NewPwd=TripleDes(Upper_Md5(用户输入的密码),当前HAWK凭据的KEY)。 |
string |
Required Max length: 64 Min length: 8 |
OldPwd |
旧密码的密文。 密码=UPPER_MD5(用户输入的密码) 加密 OldPwd=TripleDes(Upper_Md5(用户输入的密码),当前HAWK凭据的KEY)。 |
string |
Required Max length: 64 Min length: 8 |
Request Formats
application/json, text/json
Sample:
{ "MerchantId": 1, "UserCode": 2, "NewPwd": "sample string 3", "OldPwd": "sample string 4" }
application/xml, text/xml
Sample:
<MerchantUserChangePwdParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <MerchantId>1</MerchantId> <NewPwd>sample string 3</NewPwd> <OldPwd>sample string 4</OldPwd> <UserCode>2</UserCode> </MerchantUserChangePwdParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
使用旧密码,设置新密码。 设置成功后,新的HAWK认证凭据中的KEY通过Tag值返回。
CommonOperationResultWithTagOfStringName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResultWithTagOfstring>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.