Skip to content

Commit

Permalink
Revert "fix: TUP-706 A.1.a. cannot login to site 2"
Browse files Browse the repository at this point in the history
This reverts commit 6bece39.

This did not fix anything. `SESSION_COOKIE_SECURE=False` is still required locally.
  • Loading branch information
wesleyboar committed Jul 23, 2024
1 parent 6bece39 commit e6bdbbf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions taccsite_cms/middleware/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ def __call__(self, request):
current_site = Site.objects.get(id=settings.DEFAULT_SITE_ID)

request.current_site = current_site
current_domain = urlparse('//' + current_site.domain)

settings.SITE_ID = current_site.id
settings.SESSION_COOKIE_NAME = f"sessionid_site{current_site.id}"
settings.SESSION_COOKIE_DOMAIN = current_domain.hostname

response = self.get_response(request)
return response

0 comments on commit e6bdbbf

Please sign in to comment.