fixed vairable name

This commit is contained in:
2021-10-16 12:50:44 -06:00
parent 93c2d4f92a
commit 34c80ce5db
+2 -2
View File
@@ -59,7 +59,7 @@ def login():
if error is None:
session.clear()
session['user_id'] = user['id']
session['user_id'] = user['userid']
return redirect(url_for('index'))
flash(error)
@@ -74,7 +74,7 @@ def load_logged_in_user():
g.user = None
else:
g.user = get_db().execute(
'SELECT * FROM users WHERE id = ?', (user_id,)
'SELECT * FROM users WHERE userid = ?', (user_id,)
).fetchone()
@bp.route('.logout')