GET /mfa/status/{user_id}
查询用户已启用的MFA方式和状态。参考:OWASP ASVS V2.8。
MFA `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
user_id |
path |
string |
Yes |
|
|
|
用户ID |
Referenced Schemas
dto.MFAStatusDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.MFAStatusResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.MFAStatusResponse
| Field | Type | Required | Example | Constraints | Description |
email_address |
string |
No |
user@example.com |
|
|
email_enabled |
boolean |
No |
True |
|
|
sms_enabled |
boolean |
No |
False |
|
|
sms_phone |
string |
No |
+8613800****000 |
|
|
totp_enabled |
boolean |
No |
True |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|