Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 60b9abef7..d1022dedb 100644
--- a/wger/core/views/user.py
+++ b/wger/core/views/user.py
@@ -50,7 +50,7 @@ from wger.manager.models import Workout
from wger.nutrition.models import NutritionPlan
from wger.config.models import GymConfig
from wger.weight.models import WeightEntry
-from wger.settings_global import *
+from django.conf import settings
logger = 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