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

Commit ded7f74

Browse files
committed
remove max age
1 parent 6700db8 commit ded7f74

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
@@ -93,13 +93,13 @@ def impersonate_owner(self, request, queryset):
9393

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

0 commit comments

Comments
 (0)