change noise default

This commit is contained in:
2025-05-04 16:25:13 +03:30
parent 620bf041bd
commit 185e1bc339

View File

@@ -1,4 +1,3 @@
from rest_captcha.serializers import RestCaptchaSerializer
from rest_captcha import utils
from rest_captcha.settings import api_settings
from django.core.cache import caches
@@ -9,7 +8,3 @@ 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