Commit e593edff by Ben Patterson

Merge pull request #11690 from edx/revert-11644-omar/hide-tos

Revert "Registration: don't require terms of service if checkbox is hidden"
parents 23a0a6d4 9e4f14f1
......@@ -1628,7 +1628,7 @@ def create_account_with_params(request, params):
not do_external_auth
)
# Can't have terms of service for certain SHIB users, like at Stanford
tos_required = settings.REGISTRATION_EXTRA_FIELDS.get('terms_of_service') != 'hidden' and (
tos_required = (
not settings.FEATURES.get("AUTH_USE_SHIB") or
not settings.FEATURES.get("SHIB_DISABLE_TOS") or
not do_external_auth or
......
......@@ -1683,16 +1683,6 @@ class RegistrationViewTest(ThirdPartyAuthTestMixin, ApiTestCase):
}
)
@override_settings(REGISTRATION_EXTRA_FIELDS={"honor_code": "hidden", "terms_of_service": "hidden"})
def test_register_hidden_honor_code_and_terms_of_service(self):
response = self.client.post(self.url, {
"email": self.EMAIL,
"name": self.NAME,
"username": self.USERNAME,
"password": self.PASSWORD,
})
self.assertHttpOK(response)
def test_missing_fields(self):
response = self.client.post(
self.url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment