A lot of code clean up! Also adding in Response everywhere...
This commit is contained in:
@@ -44,7 +44,7 @@ class User_New_Base(BaseModel):
|
||||
name: str
|
||||
email: str
|
||||
new_password: str = Field(default_factory = lambda:secrets.token_urlsafe(default_num_bytes))
|
||||
password: Optional[str]
|
||||
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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user