GET /admin/mfa/backup-codes/{user_id}
管理员查看指定用户的备用恢复码数量。参考:OWASP ASVS V2.8.3。
多因素认证 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
user_id |
path |
string |
是 |
|
|
|
用户ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.BackupCodesCountDetailResponse
service-mfa/internal/handler/dto.BackupCodesCountResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
count |
integer |
否 |
8 |
|
|
max_codes |
integer |
否 |
10 |
|
|
message |
string |
否 |
|
|
|
should_regenerate |
boolean |
否 |
False |
|
|