From 340e00988f23015cdbbe92df5b07330035ce31a0 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 16 Jun 2020 14:06:52 +0500 Subject: [PATCH] Removed confirm email after SSO --- .../djangoapps/user_authn/views/registration_form.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openedx/core/djangoapps/user_authn/views/registration_form.py b/openedx/core/djangoapps/user_authn/views/registration_form.py index afef5039b8..b3ce0e4b33 100644 --- a/openedx/core/djangoapps/user_authn/views/registration_form.py +++ b/openedx/core/djangoapps/user_authn/views/registration_form.py @@ -1087,6 +1087,17 @@ class RegistrationFormFactory(object): instructions="", ) + # Hide the confirm_email field + form_desc.override_field_properties( + "confirm_email", + default="", + field_type="hidden", + required=False, + label="", + instructions="", + restrictions={} + ) + # Hide the password field form_desc.override_field_properties( "password",