Skip to content

Commit

Permalink
feat: make user active in case of drupal and skip email
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Mar 7, 2024
1 parent 10b5e17 commit fdc8597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/user_authn/views/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdc8597

Please sign in to comment.