fixed auth service

parent a743c477
...@@ -70,7 +70,7 @@ class AuthService: ...@@ -70,7 +70,7 @@ class AuthService:
async def authenticate_user(self, username: str, password: str): async def authenticate_user(self, username: str, password: str):
users = await self.user_repo.get_list(username=username) users = await self.user_repo.get_list(username=username)
if users and self.verify_password(password, users[0].password): if users and await self.verify_password(password, users[0].password):
return users[0] return users[0]
async def login(self, data: schemas.LoginRequestModel): async def login(self, data: schemas.LoginRequestModel):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment