1
0
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:
Dimitri Huisman 2021-12-20 21:07:25 +00:00
parent 3a46ee073c
commit f88daa1e77

View File

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