forked from s_ranjbar/city_retrofit
Bug fix in user info
This commit is contained in:
parent
30dbea0edc
commit
018c3d24a5
|
@ -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}')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user