Self hosted FLOSS fitness/workout, nutrition and weight tracker
fix(auth): add use_social_auth to global context
pankaj-basnet60dc22c774a2
diff --git a/wger/utils/context_processor.py b/wger/utils/context_processor.pyindex 550fb5426..9a1a011cd 100644--- a/wger/utils/context_processor.py+++ b/wger/utils/context_processor.py@@ -1,17 +1,18 @@-# This file is part of wger Workout Manager.+# This file is part of wger Workout Manager <https://github.com/wger-project>.+# Copyright (C) 2013 - 2026 wger Team#-# wger Workout Manager is free software: you can redistribute it and/or modify-# it under the terms of the GNU Affero General Public License as published by-# the Free Software Foundation, either version 3 of the License, or-# (at your option) any later version.+# wger Workout Manager is free software: you can redistribute it and/or modify+# it under the terms of the GNU Affero General Public License as published by+# the Free Software Foundation, either version 3 of the License, or+# (at your option) any later version.#-# wger Workout Manager is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.+# wger Workout Manager is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU Affero General Public License for more details.#-# You should have received a copy of the GNU Affero General Public License-# along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+# You should have received a copy of the GNU Affero General Public License+# along with this program. If not, see <http://www.gnu.org/licenses/>.# Djangofrom django.conf import settings@@ -34,6 +35,7 @@ def processor(request):context = {'mastodon': settings.WGER_SETTINGS.get('MASTODON', ''),'allow_registration': settings.WGER_SETTINGS.get('ALLOW_REGISTRATION', False),+ 'use_social_auth': settings.WGER_SETTINGS.get('USE_SOCIAL_AUTH', False),# Languages'i18n_language': get_language_data(