From f81b64f415fee33488638f7544f1a3b963f9d299 Mon Sep 17 00:00:00 2001 From: Dmytro <98233552+DmytroAlipov@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:57:30 +0300 Subject: [PATCH] fix: get registration fields from site configuration (#33165) Co-authored-by: Edward Zarecor Co-authored-by: Zainab Amir --- openedx/core/djangoapps/user_authn/views/register.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index 083a821b93..04b0ae678f 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -190,10 +190,9 @@ def create_account_with_params(request, params): # pylint: disable=too-many-sta set_custom_attribute('register_user_tpa', pipeline.running(request)) extended_profile_fields = configuration_helpers.get_value('extended_profile_fields', []) # Can't have terms of service for certain SHIB users, like at Stanford - registration_fields = getattr(settings, 'REGISTRATION_EXTRA_FIELDS', {}) tos_required = ( - registration_fields.get('terms_of_service') != 'hidden' or - registration_fields.get('honor_code') != 'hidden' + extra_fields.get('terms_of_service') != 'hidden' or + extra_fields.get('honor_code') != 'hidden' ) form = AccountCreationForm(