POST /mfa/email/verify
验证用户提交的邮箱验证码,判断其有效性。使用限流保护。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Body
Schema: dto.EmailVerifyRequest
| Field | Type | Required | Example | Constraints | Description |
code |
string |
Yes |
|
|
|
email |
string |
No |
|
|
邮箱地址,用于创建 MFAConfig 记录 |
Referenced Schemas
dto.EmailVerifyDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ValidResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ValidResponse
| Field | Type | Required | Example | Constraints | Description |
valid |
boolean |
No |
True |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|