Fix (?) for login bug
This commit is contained in:
parent
2cb4900a55
commit
5c4325d57d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue