Work on event, event_session, event_presentation, event_presenter, user, and person routes, methods, and models
This commit is contained in:
@@ -44,12 +44,13 @@ class User_New_Base(BaseModel):
|
||||
username: str
|
||||
name: str
|
||||
email: str
|
||||
email_verified: bool = False
|
||||
new_password: str = Field(default_factory = lambda:secrets.token_urlsafe(default_num_bytes))
|
||||
password: Optional[str] # If new_password is found then the validator below will create secure_hash_string() from the new password string.
|
||||
|
||||
allow_auth_key: Optional[int]
|
||||
allow_auth_key: bool = False
|
||||
|
||||
enable: Optional[bool] = False
|
||||
enable: bool = False
|
||||
enable_from: Optional[datetime.datetime] = datetime.datetime.now(datetime.timezone.utc)
|
||||
#enable_from: Optional[datetime.datetime] = datetime.datetime.now()
|
||||
enable_to: Optional[datetime.datetime] = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(days=365)
|
||||
@@ -57,9 +58,9 @@ class User_New_Base(BaseModel):
|
||||
|
||||
#super: Optional[bool] = False
|
||||
#manager: Optional[bool] = False
|
||||
administrator: Optional[bool] = False
|
||||
public: Optional[bool] = False
|
||||
verified: Optional[bool] = False
|
||||
administrator: bool = False
|
||||
public: bool = False
|
||||
verified: bool = False
|
||||
|
||||
notes: Optional[str]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user