PUT /mfa/sms/enroll
为用户注册短信MFA认证方式。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Body
Schema: dto.SMSEnrollRequest
| Field | Type | Required | Example | Constraints | Description |
phone |
string |
Yes |
+8613800138000 |
|
|
Referenced Schemas
dto.SMSEnrollDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.SMSEnrollResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.SMSEnrollResponse
| Field | Type | Required | Example | Constraints | Description |
enabled |
boolean |
No |
False |
|
|
method_type |
string |
No |
sms |
|
|
phone |
string |
No |
+8613800****000 |
|
|
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 |
|
|
|