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,12 @@
from django.utils.translation import gettext_lazy as _
from rest_framework.exceptions import APIException
from rest_framework import status
class CaptchaFailed(APIException):
"""
raised exception when user entered wrong captcha code
"""
status_code = status.HTTP_403_FORBIDDEN
default_detail = _('Wrong Captcha')
default_code = 'wrong captcha'