PUT /mfa/email/enroll
为用户注册邮箱MFA认证方式。参考:OWASP ASVS V2.8。
多因素认证 `bearerAuth` application/json
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.EmailEnrollDetailResponse
service-mfa/internal/handler/dto.EmailEnrollResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
email |
string |
否 |
user@example.com |
|
|
enabled |
boolean |
否 |
False |
|
|
method_type |
string |
否 |
email |
|
|
status |
string |
否 |
pending_verification |
|
|
verified |
boolean |
否 |
False |
|
|