From 1301079fd23954e92d2deed1dd36f72331251431 Mon Sep 17 00:00:00 2001 From: nospame Date: Fri, 20 Sep 2024 13:29:09 -0700 Subject: [PATCH] Remove redundant constant --- corehq/apps/cloudcare/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/corehq/apps/cloudcare/middleware.py b/corehq/apps/cloudcare/middleware.py index 98a14f0d07ee..0954c4eb6db3 100644 --- a/corehq/apps/cloudcare/middleware.py +++ b/corehq/apps/cloudcare/middleware.py @@ -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): @@ -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)