mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-01-21 19:25:43 +00:00
- use existing access mechanisms for validation - adds swagger/schema and validation of incoming payload
47 lines
901 B
JSON
47 lines
901 B
JSON
{
|
|
"operationId": "getUser2faStatus",
|
|
"summary": "Get user 2fa Status",
|
|
"tags": ["users"],
|
|
"security": [
|
|
{
|
|
"bearerAuth": []
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"default": {
|
|
"value": [
|
|
{
|
|
"enabled": false,
|
|
"backup_codes_remaining": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"schema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["enabled", "backup_codes_remaining"],
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"description": "Is 2FA enabled for this user",
|
|
"example": true
|
|
},
|
|
"backup_codes_remaining": {
|
|
"type": "integer",
|
|
"description": "Number of remaining backup codes for this user",
|
|
"example": 5
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|