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":
|
||||
|
|
|
@ -25,6 +25,7 @@ def login_get(v):
|
|||
|
||||
|
||||
def check_for_alts(current_id):
|
||||
if SITE == 'localhost': return
|
||||
past_accs = set(session.get("history", []))
|
||||
past_accs.add(current_id)
|
||||
session["history"] = list(past_accs)
|
||||
|
|
48
seed-db.sql
48
seed-db.sql
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue