Skip to content

Commit

Permalink
fix: get registration fields from site configuration (openedx#33165)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Zarecor <[email protected]>
Co-authored-by: Zainab Amir <[email protected]>
  • Loading branch information
3 people authored Sep 21, 2023
1 parent 3aeaec3 commit f81b64f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openedx/core/djangoapps/user_authn/views/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f81b64f

Please sign in to comment.