简要说明

  • 修改个人密码

请求URL

  • https://sso-cas.gridsumdissector.com/api/v2/password/change

请求方式

  • POST

请求头

Key Value 说明
Content-Type application/json 请求数据类型
ticket string 本次请求所使用的凭据

请求体参数

名称 必选 类型 说明
oldPassword string 账户的旧密码
newPassword string 账户的新密码

返回示例

  • 成功
{
  "errorCode": 0,
  "data": null,
  "message": "Success"
}
  • 新密码格式不合法(8-20个字符,字母、数字、字符至少包含两种)
{
  "errorCode": 4022,
  "data": null,
  "message": "Params wrong:Illegal password"
}
  • 旧密码验证失败
{
  "errorCode": 2000,
  "data": null,
  "message": ":Old password error"
}

备注

  • 更多返回错误代码请看错误代码描述