Skip to content

Commit

Permalink
Removing code that blocks login on SSO accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey committed Jun 3, 2021
1 parent f02f5bf commit f802581
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions common/djangoapps/third_party_auth/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,6 @@ def set_logged_in_cookies(backend=None, user=None, strategy=None, auth_entry=Non
"""
if not is_api(auth_entry) and user is not None and user.is_authenticated:
request = strategy.request if strategy else None
if not user.has_usable_password():
msg = "Your account is disabled"
logout(request)
return JsonResponse(msg, status=403)
# n.b. for new users, user.is_active may be False at this point; set the cookie anyways.
if request is not None:
# Check that the cookie isn't already set.
Expand Down

0 comments on commit f802581

Please sign in to comment.