Fix using nonexistent variable
This commit is contained in:
parent
3d6f50399c
commit
3c35ac4075
@ -85,7 +85,7 @@ class UserService:
|
||||
with db_connection.cursor(dictionary=True) as cursor:
|
||||
|
||||
cursor.execute("select id, password from user where username = %s", (username,))
|
||||
result = db_cursor.fetchone()
|
||||
result = cursor.fetchone()
|
||||
|
||||
user_id = result['id']
|
||||
password_hash = result['password']
|
||||
|
Loading…
x
Reference in New Issue
Block a user