Fix using nonexistent variable

This commit is contained in:
Thastertyn 2024-03-11 08:20:54 +01:00
parent 3d6f50399c
commit 3c35ac4075

View File

@ -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']