用户管理
用户重置自己的密码
用户重置自己的登录密码,系统自动生成符合安全策略的新密码,并尝试通过绑定的通信渠道发送。成功后撤销此前签发的登录 JWT,客户端须保存 data.newPassword 并重新登录;独立 API Token 不受影响。通信渠道发送失败但密码已更新时仍返回 200 和新密码。
put/user/reset-password
Request
- Base URLhttp://localhost:8888/api/v1
- URLhttp://localhost:8888/api/v1/user/reset-password
- AuthAPI key in header Authorization
Request body
User Reset Password Request required
Response
密码已重置,data.newPassword 返回新密码,原登录 JWT 已失效;通信渠道投递结果见消息
Changes
No recorded changes to this operation across all 122 revisions of this API.