Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79d76e780c |
@@ -71,7 +71,7 @@ class Password(BaseModel):
|
||||
|
||||
|
||||
class PasswordUpdate(Password):
|
||||
password: str | None = Field(default=None, min_length=8, max_length=40)
|
||||
password: str | None = Field(default=None, min_length=8, max_length=100)
|
||||
|
||||
|
||||
class RowId(BaseModel):
|
||||
|
||||
@@ -117,8 +117,8 @@ class UserUpdateMe(mixin.EmailUpdate, BaseSQLModel):
|
||||
|
||||
|
||||
class UpdatePassword(BaseSQLModel):
|
||||
current_password: str = Field(min_length=8, max_length=40)
|
||||
new_password: str = Field(min_length=8, max_length=40)
|
||||
current_password: str = Field(min_length=8, max_length=100)
|
||||
new_password: str = Field(min_length=8, max_length=100)
|
||||
|
||||
|
||||
# Database model, database table inferred from class name
|
||||
@@ -301,7 +301,7 @@ class TokenPayload(BaseSQLModel):
|
||||
|
||||
class NewPassword(BaseSQLModel):
|
||||
token: str
|
||||
new_password: str = Field(min_length=8, max_length=40)
|
||||
new_password: str = Field(min_length=8, max_length=100)
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
Reference in New Issue
Block a user