Revived API /api/v1/captcha.

Now a new captcha is created to check for a bot.
This commit is contained in:
2023-09-19 14:27:33 +06:00
parent 56cd409301
commit 27046e6674
22 changed files with 525 additions and 101 deletions

View File

@@ -157,20 +157,42 @@
"Captcha": {
"type": "object",
"properties": {
"image_base64": {
"type": "string",
"format": "byte"
"image_head": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Image",
}
},
"image_text_base64": {
"type": "string",
"format": "byte"
"image_body": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Image"
}
},
"captcha_key": {
"type": "string"
}
},
"required": [
"image_base64", "image_text_base64", "captcha_key"
"image_head", "image_body", "captcha_key"
]
},
"Image": {
"type": "object",
"properties": {
"base64": {
"type": "string",
"format": "byte"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
},
"required": [
"base64", "width", "height"
]
},
"CaptchaVerification": {