Skip to content

Commit

Permalink
Mise à jour de django_recaptcha (#6570)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen authored Jan 13, 2024
1 parent 8c6c3d2 commit 411bc88
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ beautifulsoup4==4.12.2
django-crispy-forms==1.14.0
django-model-utils==4.3.1
django-munin==0.2.1
django-recaptcha==3.0.0
django-recaptcha==4.0.0
Django==3.2.23
easy-thumbnails[svg]==2.8.5
factory-boy==3.3.0
Expand Down
2 changes: 1 addition & 1 deletion zds/member/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _

from captcha.fields import ReCaptchaField
from django_recaptcha.fields import ReCaptchaField
from crispy_forms.bootstrap import StrictButton
from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Layout, Submit, Field, ButtonHolder, Hidden, Div
Expand Down
2 changes: 1 addition & 1 deletion zds/settings/abstract_base/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"dry_rest_permissions",
"corsheaders",
"oauth2_provider",
"captcha",
"django_recaptcha",
# Apps DB tables are created in THIS order by default
# --> Order is CRITICAL to properly handle foreign keys
"zds.utils",
Expand Down
5 changes: 0 additions & 5 deletions zds/settings/abstract_base/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
recaptcha_config = config.get("recaptcha", {})

USE_CAPTCHA = recaptcha_config.get("use_captcha", False)
# Seems to be used by `django-recaptcha` (what a poorly-namespaced
# setting!).
# Set to `True` to use the “No Captcha” engine instead of the old API.
NOCAPTCHA = True
RECAPTCHA_USE_SSL = True
RECAPTCHA_PUBLIC_KEY = recaptcha_config.get("public_key", "dummy")
RECAPTCHA_PRIVATE_KEY = recaptcha_config.get("private_key", "dummy")

Expand Down

0 comments on commit 411bc88

Please sign in to comment.