Skip to content

Commit

Permalink
Merge pull request #109 from edly-io/rehan/EDLY-1474
Browse files Browse the repository at this point in the history
Moves delete_logged_in_edly_cookies method to delete_logged_in_cookies
  • Loading branch information
rehan99000 authored Jun 18, 2020
2 parents 6977126 + 61161a3 commit 5fe63d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion openedx/core/djangoapps/user_authn/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from openedx.core.djangoapps.oauth_dispatch.jwt import create_jwt_from_token
from openedx.core.djangoapps.user_api.accounts.utils import retrieve_last_sitewide_block_completed
from openedx.core.djangoapps.user_authn.exceptions import AuthFailedError
from openedx.features.edly.cookies import set_logged_in_edly_cookies
from openedx.features.edly.cookies import delete_logged_in_edly_cookies, set_logged_in_edly_cookies
from student.models import CourseEnrollment


Expand Down Expand Up @@ -84,6 +84,8 @@ def delete_logged_in_cookies(response):
domain=settings.SESSION_COOKIE_DOMAIN
)

delete_logged_in_edly_cookies(response)

return response


Expand Down
2 changes: 0 additions & 2 deletions openedx/core/djangoapps/user_authn/views/logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from provider.oauth2.models import Client
from openedx.core.djangoapps.user_authn.cookies import delete_logged_in_cookies
from openedx.core.djangoapps.user_authn.utils import is_safe_login_or_logout_redirect
from openedx.features.edly.cookies import delete_logged_in_edly_cookies


class LogoutView(TemplateView):
Expand Down Expand Up @@ -66,7 +65,6 @@ def dispatch(self, request, *args, **kwargs):

# Clear the cookie used by the edx.org marketing site
delete_logged_in_cookies(response)
delete_logged_in_edly_cookies(response)

return response

Expand Down

0 comments on commit 5fe63d2

Please sign in to comment.