Skip to content

Commit

Permalink
Remove redundant constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nospame committed Sep 20, 2024
1 parent f189561 commit 1301079
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions corehq/apps/cloudcare/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from django.utils.deprecation import MiddlewareMixin

FORMPLAYER_SESSION_COOKIE_NAME = 'formplayer_session'
FORMPLAYER_SESSION_COOKIE_HTTPONLY = settings.SESSION_COOKIE_HTTPONLY


class CloudcareMiddleware(MiddlewareMixin):
Expand All @@ -29,4 +28,4 @@ def _set_formplayer_session_cookie(request, response):
if couch_user:
if request.COOKIES.get(FORMPLAYER_SESSION_COOKIE_NAME) != couch_user.user_id:
response.set_cookie(FORMPLAYER_SESSION_COOKIE_NAME, couch_user.user_id,
httponly=FORMPLAYER_SESSION_COOKIE_HTTPONLY)
httponly=settings.SESSION_COOKIE_HTTPONLY)

0 comments on commit 1301079

Please sign in to comment.