/auth/verify-reset-code
验证用户提交的重置密码验证码是否有效,验证通过后允许进入密码重置步骤。参考:OWASP ASVS V2.3。
请求体
Schema: service-identity/internal/handler/dto.VerifyResetCodeRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
string |
是 | Verification code | ||
identity |
string |
是 | Email or phone | ||
tenant_id |
string |
否 | TenantID 显式租户(地址栏):body > query > X-Tenant-ID;空即 400(AUTH-04/09)。 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 验证码有效 | service-core/base/dto.SimpleResponse |
| 400 | 请求参数无效或验证码已过期 | service-core/base/dto.SimpleResponse |
| 500 | 服务器内部错误 | service-core/base/dto.SimpleResponse |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |