makefile 1.1 and permissions 1.0

This commit is contained in:
2025-10-05 02:09:28 +03:00
parent 46c6e1cd94
commit 6db14b2329
6 changed files with 119 additions and 15 deletions

View File

@@ -32,6 +32,8 @@ class UserUpdate(BaseModel):
description:Optional[str] = Field(None, description="description of the user")
activated:Optional[bool] = Field(None, description="Has the user activated their account")
password:Optional[constr(min_length=8)] = Field(None, description="Password with min 8 chars, letters and digits")
can_edit:Optional[bool] = Field(None, description="The user can edit something")
can_delete:Optional[bool] = Field(None, description="The user can delete something")
@validator('password')
def password_validator(cls, password):
return check_password_complexity(cls, password)