Dotory
This commit is contained in:
parent
40266cc6e5
commit
5f8600d9ae
3 changed files with 14 additions and 15 deletions
|
|
@ -106,8 +106,8 @@ class UserService:
|
|||
return User(**row)
|
||||
|
||||
async def authenticate_user(self, username: str, password: str) -> Optional[User]:
|
||||
user =
|
||||
if user and :
|
||||
user = await self.get_user_by_username(username)
|
||||
if user and user.verify_password(password):
|
||||
return user
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue