Ajout de la suppression automatique des sessions obsolètes
This commit is contained in:
parent
49cd010bec
commit
861ae7245c
@ -8,6 +8,7 @@ from .database import Session
|
|||||||
|
|
||||||
def views(app, db):
|
def views(app, db):
|
||||||
def est_connecte():
|
def est_connecte():
|
||||||
|
db.delete_old_sessions()
|
||||||
return session.get("uuid") is not None and db.check_connection(session.get("uuid"))
|
return session.get("uuid") is not None and db.check_connection(session.get("uuid"))
|
||||||
|
|
||||||
def login_required(func):
|
def login_required(func):
|
||||||
|
Loading…
Reference in New Issue
Block a user