POST /mfa/email/send
向用户邮箱发送验证码,用于邮箱MFA认证。生产环境不返回验证码明文。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Body
Schema: dto.EmailSendRequest
| Field | Type | Required | Example | Constraints | Description |
email |
string |
Yes |
|
|
|
purpose |
string |
No |
|
|
|
Referenced Schemas
dto.EmailSendData
| Field | Type | Required | Example | Constraints | Description |
code |
string |
No |
|
|
|
expires |
string |
No |
|
|
|
sent |
boolean |
No |
|
|
|
dto.EmailSendDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.EmailSendData |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|