Fixed isActive and isSuperuser not changing when creating user

This commit is contained in:
Lucas Oliveira 2023-09-11 16:59:33 -03:00
commit b454b8c7ce

View file

@ -28,6 +28,8 @@ class User(SQLModelSerializable, table=True):
class UserCreate(SQLModel):
username: str = Field()
password: str = Field()
is_active: bool = Field(default=False)
is_superuser: bool = Field(default=False)
class UserRead(SQLModel):