Skip to content

Commit

Permalink
fix if statement for RECAPTCHA DISABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekOMilo committed Jun 30, 2020
1 parent 9296d40 commit 69219ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowpenguin/django/recaptcha3/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 69219ca

Please sign in to comment.