Ajout de la suppression automatique des sessions obsolètes

This commit is contained in:
Valentin Moguérou 2023-05-15 06:03:55 +02:00
parent 49cd010bec
commit 861ae7245c

View File

@ -8,6 +8,7 @@ from .database import Session
def views(app, db):
def est_connecte():
db.delete_old_sessions()
return session.get("uuid") is not None and db.check_connection(session.get("uuid"))
def login_required(func):