feat: passwords need 8 characters or more, on the Site and in the Kanban
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 3m28s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m2s
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 3m28s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -255,7 +255,7 @@ class Resolution(StrictModel):
|
||||
|
||||
class Register(StrictModel):
|
||||
customer: Customer
|
||||
password: str = Field(min_length=12, max_length=128)
|
||||
password: str = Field(min_length=8, max_length=128)
|
||||
|
||||
class ProfileUpdate(StrictModel):
|
||||
"""What a customer may change about their account; the CPF/CNPJ is not among it."""
|
||||
@@ -290,7 +290,7 @@ class EmailChange(StrictModel):
|
||||
|
||||
class PasswordChange(StrictModel):
|
||||
current: str = Field(min_length=1, max_length=128)
|
||||
new: str = Field(min_length=12, max_length=128)
|
||||
new: str = Field(min_length=8, max_length=128)
|
||||
|
||||
class SignupCode(StrictModel):
|
||||
signup: UUID
|
||||
@@ -311,7 +311,7 @@ class ForgotPassword(StrictModel):
|
||||
|
||||
class PasswordReset(StrictModel):
|
||||
token: str = Field(min_length=20, max_length=100, pattern=r'^[A-Za-z0-9_-]+$')
|
||||
password: str = Field(min_length=12, max_length=128)
|
||||
password: str = Field(min_length=8, max_length=128)
|
||||
|
||||
class Login(StrictModel):
|
||||
email: str = Field(min_length=3, max_length=254)
|
||||
|
||||
Reference in New Issue
Block a user