Included message for wrong authentication
This commit is contained in:
parent
708075fd3c
commit
169c79650e
|
@ -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}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user