mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add preblocking
This commit is contained in:
@@ -134,6 +134,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateUserLimitLoginCategory"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateUserLimitLoginPreBlockDuration"
|
||||
}
|
||||
],
|
||||
"definitions": {
|
||||
@@ -1398,6 +1401,30 @@
|
||||
"userId"
|
||||
],
|
||||
"title": "SerializedUpdateUserLimitLoginCategory"
|
||||
},
|
||||
"SerializedUpdateUserLimitLoginPreBlockDuration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"UPDATE_USER_LIMIT_LOGIN_PRE_BLOCK_DURATION"
|
||||
]
|
||||
},
|
||||
"userId": {
|
||||
"type": "string"
|
||||
},
|
||||
"preBlockDuration": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"preBlockDuration",
|
||||
"type",
|
||||
"userId"
|
||||
],
|
||||
"title": "SerializedUpdateUserLimitLoginPreBlockDuration"
|
||||
}
|
||||
},
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
|
||||
Reference in New Issue
Block a user