deploy login & reCaptcha

This commit is contained in:
2025-05-04 15:24:28 +03:30
parent 3ab3fa2d13
commit 70fa849840
36 changed files with 494 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
from rest_captcha.serializers import RestCaptchaSerializer
from rest_captcha import utils
from rest_captcha.settings import api_settings
from django.core.cache import caches
cache = caches[api_settings.CAPTCHA_CACHE]
def noise_default(image, draw):
draw = utils.noise_dots(draw, image, api_settings.CAPTCHA_FOREGROUND_COLOR)
# draw = utils.noise_arcs(draw, image, api_settings.CAPTCHA_FOREGROUND_COLOR)
class HumanOnlyDataSerializer(RestCaptchaSerializer): # noqa
pass