forked from MarseyWorld/MarseyWorld
fdsfdsdf
parent
431b1ca08b
commit
9eab8440d3
|
@ -18,8 +18,7 @@ def get_logged_in_user():
|
||||||
nonce = session.get("login_nonce", 0)
|
nonce = session.get("login_nonce", 0)
|
||||||
logged_in = session.get("logged_in")
|
logged_in = session.get("logged_in")
|
||||||
|
|
||||||
if not uid: return None
|
if not uid or not logged_in or uid != logged_in: return None
|
||||||
# if not uid or not logged_in or uid != logged_in: return None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if g.db: v = g.db.query(User).filter_by(id=uid).first()
|
if g.db: v = g.db.query(User).filter_by(id=uid).first()
|
||||||
|
|
Loading…
Reference in New Issue