mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
refactor: user model
This commit is contained in:
parent
8a088e6c75
commit
2da3eac1b5
|
|
@ -87,10 +87,10 @@ class UserManageSerializer(serializers.Serializer):
|
|||
required=True,
|
||||
label=_("Username"),
|
||||
max_length=20,
|
||||
min_length=6,
|
||||
min_length=4,
|
||||
validators=[
|
||||
validators.RegexValidator(
|
||||
regex=re.compile("^.{6,20}$"),
|
||||
regex=re.compile("^.{4,20}$"),
|
||||
message=_('Username must be 6-20 characters long')
|
||||
)
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue