remotes/1693045480750635534/spooky-22
parent
8db4b363f8
commit
b0d6490d1f
|
@ -22,9 +22,9 @@ def get_logged_in_user():
|
||||||
nonce = session.get("login_nonce", 0)
|
nonce = session.get("login_nonce", 0)
|
||||||
id = int(lo_user)
|
id = int(lo_user)
|
||||||
v = g.db.query(User).filter_by(id=id).one_or_none()
|
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 not v or nonce < v.login_nonce: return None
|
||||||
|
|
||||||
|
if v.id != id: abort(400)
|
||||||
v.client = None
|
v.client = None
|
||||||
|
|
||||||
if request.method != "GET":
|
if request.method != "GET":
|
||||||
|
|
|
@ -25,6 +25,7 @@ def login_get(v):
|
||||||
|
|
||||||
|
|
||||||
def check_for_alts(current_id):
|
def check_for_alts(current_id):
|
||||||
|
if SITE == 'localhost': return
|
||||||
past_accs = set(session.get("history", []))
|
past_accs = set(session.get("history", []))
|
||||||
past_accs.add(current_id)
|
past_accs.add(current_id)
|
||||||
session["history"] = list(past_accs)
|
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…
Reference in New Issue