POST api/Agent/ChangeLoginPassword/UseOldPwd

代理商使用旧密码修改登陆密码。 认证方式:HAWK(ID=代理商获得的用户名、User=代理商获得的用户名、密钥=KEY+UPPER(MD5(代理商登陆密码)))。

Request Information

URI Parameters

None.

Body Parameters

重置密码的参数

NewPasswordParm
NameDescriptionTypeAdditional information
newpassword

新密码,非明文。 按以下规则进行加密: KEY=会话密钥(STRING)+UPPER_MD5(登陆密码(此处是旧密码)) byte[] KEYForTripDes = HAMCSHA256(UTF8.GetBytes(KEY)) byte[] KEY2 = KEYFroTripDes的前24字节 值= ToBase64String(TripleDes(UTF8.GetBytes(UPPER_MD5(新密码)),KEY2) 对UPPER_MD5()计算过程的描述: byte[] valueBuffer = Utf8.GetBytes(待运算的字符串) byte[] md5buffer = Md5(valueBuffer); string value = FormatString(md5Buffer,"x2)/*这个的意思是转换成bcd字符串,一个字节变成两个字符0xae= "ae",0x0a="0a"*/ string returnvalue = upper(value);全部转换成大写,仍然是每两个字符表示一个字节。 请不要指责这个脱库子放屁的处理,因为我们要兼容老版本,新版本只能如此。

string

Required

Max length: 64

Request Formats

application/json, text/json

Sample:
{
  "newpassword": "sample string 1"
}

application/xml, text/xml

Sample:
<NewPasswordParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface">
  <newpassword>sample string 1</newpassword>
</NewPasswordParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

代理商使用旧密码修改登陆密码。 认证方式:HAWK(ID=代理商获得的用户名、User=代理商获得的用户名、密钥=KEY+UPPER(MD5(代理商登陆密码)))。

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.