mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-16 02:46:44 +02:00
Add missing cast to int
This commit is contained in:
parent
3a46ee073c
commit
f88daa1e77
@ -357,7 +357,7 @@ class MailuSessionConfig:
|
||||
if now is None:
|
||||
now = int(time.time())
|
||||
created = int.from_bytes(created, byteorder='big')
|
||||
if not created <= now <= created + app.config['PERMANENT_SESSION_LIFETIME']:
|
||||
if not created <= now <= created + int(app.config['PERMANENT_SESSION_LIFETIME']):
|
||||
return None
|
||||
|
||||
return (uid, sid, crt)
|
||||
|
Loading…
Reference in New Issue
Block a user