Add missing cast to int

master
Dimitri Huisman 3 years ago
parent 3a46ee073c
commit f88daa1e77

@ -357,7 +357,7 @@ class MailuSessionConfig:
if now is None: if now is None:
now = int(time.time()) now = int(time.time())
created = int.from_bytes(created, byteorder='big') 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 None
return (uid, sid, crt) return (uid, sid, crt)

Loading…
Cancel
Save