add OAuth2PasswordRequestForm
This commit is contained in:
@@ -14,6 +14,8 @@ class AuthService(BaseService):
|
||||
is_superuser=False,
|
||||
)
|
||||
result = await self.session.user.create_one(user_to_insert)
|
||||
print(result)
|
||||
await self.session.commit()
|
||||
return User.model_validate(result)
|
||||
|
||||
async def login(self, username: str, password: str):
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user