This commit is contained in:
암냥 2025-09-13 16:24:39 +09:00
commit 5f8600d9ae
3 changed files with 14 additions and 15 deletions

View file

@ -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