Compare commits

..

2 Commits

Author SHA1 Message Date
3c35ac4075 Fix using nonexistent variable 2024-03-11 08:20:54 +01:00
3d6f50399c Updated requirements - missing bcrypt and redis 2024-03-11 08:19:59 +01:00
2 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class UserService:
with db_connection.cursor(dictionary=True) as cursor: with db_connection.cursor(dictionary=True) as cursor:
cursor.execute("select id, password from user where username = %s", (username,)) cursor.execute("select id, password from user where username = %s", (username,))
result = db_cursor.fetchone() result = cursor.fetchone()
user_id = result['id'] user_id = result['id']
password_hash = result['password'] password_hash = result['password']

View File

@ -4,4 +4,6 @@ mysql-connector-python==8.3.0
python-dotenv==1.0.1 python-dotenv==1.0.1
Flask-JWT-Extended==4.5.3 Flask-JWT-Extended==4.5.3
PyJWT==2.8.0 PyJWT==2.8.0
Flask-Mail==0.9.1 Flask-Mail==0.9.1
redis==4.5.4
bcrypt==4.1.2