POST /mfa/sms/verify
验证用户输入的短信验证码,完成短信MFA认证。使用限流保护。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Body
Schema: dto.SMSVerifyRequest
| Field | Type | Required | Example | Constraints | Description |
code |
string |
Yes |
|
|
|
phone |
string |
No |
|
|
手机号,用于创建 MFAConfig 记录 |
Referenced Schemas
dto.SMSVerifyDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.SMSVerifyResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.SMSVerifyResponse
| 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 |
|
|
|