PUT /mfa/email/enroll
为用户注册邮箱MFA认证方式。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Body
Schema: dto.EmailEnrollRequest
| Field | Type | Required | Example | Constraints | Description |
email |
string |
Yes |
user@example.com |
|
|
Referenced Schemas
dto.EmailEnrollDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.EmailEnrollResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.EmailEnrollResponse
| Field | Type | Required | Example | Constraints | Description |
email |
string |
No |
user@example.com |
|
|
enabled |
boolean |
No |
False |
|
|
method_type |
string |
No |
email |
|
|
status |
string |
No |
pending_verification |
|
|
verified |
boolean |
No |
False |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|