Fix (?) for login bug

This commit is contained in:
Kumi 2022-08-04 15:04:28 +02:00
parent 2cb4900a55
commit 5c4325d57d
Signed by: kumi
GPG key ID: 5D1CE6AF1805ECA2

View file

@ -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