Skip to content

Commit 69219ca

Browse files
committed
fix if statement for RECAPTCHA DISABLED
1 parent 9296d40 commit 69219ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snowpenguin/django/recaptcha3/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class ReCaptchaField(forms.CharField):
1717
def __init__(self, attrs=None, *args, **kwargs):
18-
if os.environ.get('RECAPTCHA_DISABLE', None) is not None:
18+
if os.environ.get('RECAPTCHA_DISABLE', None) is None:
1919
self._private_key = kwargs.pop('private_key', settings.RECAPTCHA_PRIVATE_KEY)
2020
self._score_threshold = kwargs.pop('score_threshold', settings.RECAPTCHA_SCORE_THRESHOLD)
2121

0 commit comments

Comments
 (0)