frontend: add username login

This commit is contained in:
2024-06-08 19:18:15 -04:00
parent 8e6e5ea903
commit 79f511c837
4 changed files with 17 additions and 9 deletions

View File

@ -120,3 +120,7 @@ class UserData(BaseData):
result = await self.execute(sql)
return result is not None
async def get_user_by_username(self, username: str) -> Optional[Row]:
result = await self.execute(aime_user.select(aime_user.c.username == username))
if result: return result.fetchone()