users

Change Password

已登录用户修改自己的密码

  1. 验证当前密码是否正确
  2. 更新用户密码
  3. 返回成功消息
  4. 如果当前密码不正确 返回401错误
post/api/v1/users/change-password

Request

  • Base URL: https://opencloudos.org (the document declares no server; this is the origin it was published from)
  • URL: https://opencloudos.org/api/v1/users/change-password
  • Auth: OAuth 2 (password, token URL /api/v1/users/login)

Request body

current_passwordstring required
new_passwordstring required

Response

Successful Response

messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.