POST /mfa/totp/verify

验证用户提交的TOTP验证码,验证通过后启用TOTP多因素认证。使用限流保护(checkRateLimit)。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

多因素认证 `bearerAuth` application/json

请求体

Schema: service-mfa/internal/handler/dto.TOTPVerifyRequest

字段类型必填示例约束描述
code string 是

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.ValidDetailResponse

字段类型必填示例约束描述
code integer 否
data service-mfa/internal/handler/dto.ValidResponse 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.ValidResponse

字段类型必填示例约束描述
valid boolean 否 True