diff --git a/persistence/repositories/user_repo.py b/persistence/repositories/user_repo.py index 6abda5bf..585628a9 100644 --- a/persistence/repositories/user_repo.py +++ b/persistence/repositories/user_repo.py @@ -100,6 +100,8 @@ class UserRepo(BaseRepo): if user: if Auth.check_password(password, user[0].password): return user + else: + return {'message': 'Wrong email/password combination'} return {'message': 'user not found'} except SQLAlchemyError as err: logger.error(f'Error while fetching user by email: {err}')