Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 860bce2

Browse files
committed
try max age as seconds
1 parent 11c4a7c commit 860bce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codecov_auth/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ def impersonate_owner(self, request, queryset):
9292

9393
# this cookie is read by the `ImpersonationMiddleware` and
9494
# will reset `request.current_owner` to the impersonated owner
95-
# max_age = 180 # 3 minutes
95+
max_age = 180 # 3 minutes
9696
response.set_cookie(
9797
"staff_user",
9898
owner.ownerid,
9999
domain=settings.COOKIES_DOMAIN,
100100
samesite=settings.COOKIE_SAME_SITE,
101-
# max_age=max_age,
101+
max_age=max_age,
102102
)
103103
History.log(
104104
Owner.objects.get(ownerid=owner.ownerid),

0 commit comments

Comments
 (0)