master
Aevann1 2021-12-17 07:21:55 +02:00
parent 4ffa899c99
commit 5c9206a59a
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ def get_logged_in_user():
if not uid: return None
# if not uid or not logged_in or uid != logged_in: return None
v = g.db.query(User).filter_by(id=uid).first()
if g.db: v = g.db.query(User).filter_by(id=uid).first()
else: return None
if not v or nonce < v.login_nonce: return None
v.client = None