POST /mfa/totp/devices/{id}/disable
禁用指定的TOTP设备,切换Enabled状态为false。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。
MFA `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
设备ID |
Referenced Schemas
dto.TOTPDeviceItem
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-05-12T12:00:00Z |
|
|
device_id |
string |
No |
dev-abc123 |
|
|
device_name |
string |
No |
iPhone 15 |
|
|
enabled |
boolean |
No |
True |
|
|
last_used_at |
string |
No |
2026-05-12T12:00:00Z |
|
|
verified |
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 |
|
|
|