From fdc859757cc0f50ff4acaf9741974cdf749ca688 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Thu, 7 Mar 2024 15:43:36 +0500 Subject: [PATCH] feat: make user active in case of drupal and skip email --- openedx/core/djangoapps/user_authn/views/register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/user_authn/views/register.py b/openedx/core/djangoapps/user_authn/views/register.py index 30e850ce57ce..34da53a2dcc6 100644 --- a/openedx/core/djangoapps/user_authn/views/register.py +++ b/openedx/core/djangoapps/user_authn/views/register.py @@ -268,8 +268,8 @@ def create_account_with_params(request, params): # pylint: disable=too-many-sta skip_email = _skip_activation_email( user, running_pipeline, third_party_provider, ) - - if skip_email: + is_drupal = True if request.GET.get('is_drupal') else False + if skip_email or is_drupal: registration.activate() else: redirect_to, root_url = get_next_url_for_login_page(request, include_host=True)