From 018c3d24a5570817cdda8c400b85a81c44329705 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 21 Feb 2023 10:03:37 -0500 Subject: [PATCH] Bug fix in user info --- hub/persistence/repositories/user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hub/persistence/repositories/user.py b/hub/persistence/repositories/user.py index 6c034d0e..87005a4a 100644 --- a/hub/persistence/repositories/user.py +++ b/hub/persistence/repositories/user.py @@ -115,9 +115,7 @@ class User(Repository): ).first() if user: if Auth.check_password(password, user[0].password): - #return user[0] - return True - return False + return user[0] except SQLAlchemyError as err: logger.error(f'Error while fetching user by email: {err}')