From 5c4325d57dbfc897790624d798438edc6ca80509 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 4 Aug 2022 15:04:28 +0200 Subject: [PATCH] Fix (?) for login bug --- authentication/helpers/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentication/helpers/session.py b/authentication/helpers/session.py index 91beebc..db8eb73 100644 --- a/authentication/helpers/session.py +++ b/authentication/helpers/session.py @@ -1,5 +1,6 @@ from django.utils import timezone -def session_expiry(start=timezone.now(), validity=timezone.timedelta(seconds=300)): +def session_expiry(start=None, validity=timezone.timedelta(seconds=300)): + start = start or timezone.now() return start + validity \ No newline at end of file