POST /auth/forgot-password
用户忘记密码时,通过邮箱或手机号发送密码重置验证码,支持邮箱和短信两种方式。参考:NIST SP 800-63B §5.1.1.2、OWASP ASVS V2.1。
身份认证 None application/json
Request Body
Schema: dto.ForgotPasswordRequest
| Field | Type | Required | Example | Constraints | Description |
identity |
string |
Yes |
|
|
Email or phone |
Referenced Schemas
dto.ForgotPasswordResponse
忘记密码响应
| Field | Type | Required | Example | Constraints | Description |
expires_in |
integer |
No |
|
|
Expiration time |
message |
string |
No |
|
|
Message |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|