Fix using nonexistent variable
This commit is contained in:
1 parent
3d6f50399c
commit
3c35ac4075
1 file changed
+1
-1
@@ -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']
|
||||
|
||||
Reference in new issue
Block a user