Skip to content

Commit

Permalink
fix registration crash (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Sep 4, 2023
1 parent c9282c5 commit b1bc092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_client_ip(request):


def validatecaptcha(recaptcha_response):
if not settings.get("GOOGLE_RECAPTCHA_SECRET_KEY", None):
if not getattr(settings, "GOOGLE_RECAPTCHA_SECRET_KEY", None):
return True

if not recaptcha_response:
Expand Down

0 comments on commit b1bc092

Please sign in to comment.