文档
测试

找回密码

POST
/api/user/resetpwd

接口描述

首先通过输入的邮箱地址发送验证码,然后校验验证码,最后提交发

请求参数

参数名
类型
描述
必填
email
string
邮箱地址
必填
newpassword
string
新密码
必填
captcha
string
验证码
必填

响应参数

参数名
类型
描述
必填
code
int
状态码
必填
msg
string
返回消息
必填
time
int
时间戳
必填
data
object (json)
数据集合
必填

说明 / 示例

无需登录和鉴权 成功 { "code": 1, "msg": "密码修改成功", "time": "1688820938", "data": null } 失败 { "code": 0, "msg": "验证码不正确", "time": "1688820395", "data": null } or { "code": 0, "msg": "密码必须6-30个字符", "time": "1689058713", "data": null }