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()
|
).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}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user