POST /mfa/totp/disable

禁用用户的TOTP多因素认证,需要提供当前TOTP码或备用码进行验证。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

多因素认证 `bearerAuth` application/json

请求体

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

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

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-mfa/internal/handler/dto.DisabledDetailResponse

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

service-mfa/internal/handler/dto.DisabledResponse

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