Self hosted FLOSS fitness/workout, nutrition and weight tracker
Issue #117 - Make captcha usage configurable
matheusc36d6f321272
diff --git a/wger/core/views/user.py b/wger/core/views/user.pyindex d1022dedb..a8190ef41 100644--- a/wger/core/views/user.py+++ b/wger/core/views/user.py@@ -190,7 +190,7 @@ def registration(request):FormClass = RegistrationFormNoCaptcha if is_app else RegistrationForm# Don't show captcha if the global parameter is false- if settings.WGER_SETTINGS['USE_RECAPTCHA'] == False:+ if not settings.WGER_SETTINGS['USE_RECAPTCHA']:FormClass = RegistrationFormNoCaptcha# Redirect regular users, in case they reached the registration page