Self hosted FLOSS fitness/workout, nutrition and weight tracker
Issue #117 - Make captcha usage configurable
matheus2f7220751fdf
diff --git a/wger/core/views/user.py b/wger/core/views/user.pyindex 60b9abef7..d1022dedb 100644--- a/wger/core/views/user.py+++ b/wger/core/views/user.py@@ -50,7 +50,7 @@ from wger.manager.models import Workoutfrom wger.nutrition.models import NutritionPlanfrom wger.config.models import GymConfigfrom wger.weight.models import WeightEntry-from wger.settings_global import *+from django.conf import settingslogger = logging.getLogger('wger.custom')@@ -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 WGER_SETTINGS['USE_RECAPTCHA'] == False:+ if settings.WGER_SETTINGS['USE_RECAPTCHA'] == False:FormClass = RegistrationFormNoCaptcha# Redirect regular users, in case they reached the registration page