From 69219ca34dc834fede05f4e7f107ba17156f8f45 Mon Sep 17 00:00:00 2001 From: marek Date: Tue, 30 Jun 2020 09:55:35 +0200 Subject: [PATCH] fix if statement for RECAPTCHA DISABLED --- snowpenguin/django/recaptcha3/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowpenguin/django/recaptcha3/fields.py b/snowpenguin/django/recaptcha3/fields.py index b74873b..0deed54 100644 --- a/snowpenguin/django/recaptcha3/fields.py +++ b/snowpenguin/django/recaptcha3/fields.py @@ -15,7 +15,7 @@ class ReCaptchaField(forms.CharField): def __init__(self, attrs=None, *args, **kwargs): - if os.environ.get('RECAPTCHA_DISABLE', None) is not None: + if os.environ.get('RECAPTCHA_DISABLE', None) is None: self._private_key = kwargs.pop('private_key', settings.RECAPTCHA_PRIVATE_KEY) self._score_threshold = kwargs.pop('score_threshold', settings.RECAPTCHA_SCORE_THRESHOLD)