@@ -14,19 +14,19 @@ class UserBase(SQLModel):
1414
1515# Properties to receive via API on creation
1616class UserCreate (UserBase ):
17- password : str = Field (min_length = 8 , max_length = 40 )
17+ password : str = Field (min_length = 8 , max_length = 128 )
1818
1919
2020class UserRegister (SQLModel ):
2121 email : EmailStr = Field (max_length = 255 )
22- password : str = Field (min_length = 8 , max_length = 40 )
22+ password : str = Field (min_length = 8 , max_length = 128 )
2323 full_name : str | None = Field (default = None , max_length = 255 )
2424
2525
2626# Properties to receive via API on update, all are optional
2727class UserUpdate (UserBase ):
2828 email : EmailStr | None = Field (default = None , max_length = 255 ) # type: ignore
29- password : str | None = Field (default = None , min_length = 8 , max_length = 40 )
29+ password : str | None = Field (default = None , min_length = 8 , max_length = 128 )
3030
3131
3232class UserUpdateMe (SQLModel ):
@@ -35,8 +35,8 @@ class UserUpdateMe(SQLModel):
3535
3636
3737class UpdatePassword (SQLModel ):
38- current_password : str = Field (min_length = 8 , max_length = 40 )
39- new_password : str = Field (min_length = 8 , max_length = 40 )
38+ current_password : str = Field (min_length = 8 , max_length = 128 )
39+ new_password : str = Field (min_length = 8 , max_length = 128 )
4040
4141
4242# Database model, database table inferred from class name
@@ -110,4 +110,4 @@ class TokenPayload(SQLModel):
110110
111111class NewPassword (SQLModel ):
112112 token : str
113- new_password : str = Field (min_length = 8 , max_length = 40 )
113+ new_password : str = Field (min_length = 8 , max_length = 128 )
0 commit comments