Bug fix in user info

This commit is contained in:
Guille Gutierrez 2023-02-21 10:03:37 -05:00
parent 30dbea0edc
commit 018c3d24a5

View File

@ -115,9 +115,7 @@ class User(Repository):
).first() ).first()
if user: if user:
if Auth.check_password(password, user[0].password): if Auth.check_password(password, user[0].password):
#return user[0] return user[0]
return True
return False
except SQLAlchemyError as err: except SQLAlchemyError as err:
logger.error(f'Error while fetching user by email: {err}') logger.error(f'Error while fetching user by email: {err}')