Fixed isActive and isSuperuser not changing when creating user
This commit is contained in:
parent
d09df8a497
commit
b454b8c7ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue