vc
This commit is contained in:
parent
23668772e5
commit
8f1ab79f95
3 changed files with 40 additions and 13 deletions
|
@ -22,9 +22,9 @@ def get_logged_in_user():
|
|||
nonce = session.get("login_nonce", 0)
|
||||
id = int(lo_user)
|
||||
v = g.db.query(User).filter_by(id=id).one_or_none()
|
||||
if v.id != id: abort(400)
|
||||
|
||||
if not v or nonce < v.login_nonce: return None
|
||||
|
||||
if v.id != id: abort(400)
|
||||
v.client = None
|
||||
|
||||
if request.method != "GET":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue