|
|
@@ -160,9 +160,7 @@ class UserManageSerializer(serializers.Serializer):
|
|
|
validators=[
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
- message=_(
|
|
|
- "The password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
- )
|
|
|
+ message=_("密码必须为6-20个字符,且必须包含字母、数字和特殊字符。")
|
|
|
)
|
|
|
]
|
|
|
)
|
|
|
@@ -404,9 +402,7 @@ class UserManageSerializer(serializers.Serializer):
|
|
|
validators=[
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
- message=_(
|
|
|
- "The password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
- )
|
|
|
+ message=_("密码必须为6-20个字符,且必须包含字母、数字和特殊字符。")
|
|
|
)
|
|
|
]
|
|
|
)
|
|
|
@@ -417,7 +413,7 @@ class UserManageSerializer(serializers.Serializer):
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
message=_(
|
|
|
- "The confirmation password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
+ "确认密码必须为6-20个字符,且必须包含字母、数字和特殊字符。"
|
|
|
)
|
|
|
)
|
|
|
]
|
|
|
@@ -937,7 +933,7 @@ class RePasswordSerializer(serializers.Serializer):
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
message=_(
|
|
|
- "The password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
+ "密码必须为6-20个字符,且必须包含字母、数字和特殊字符。"
|
|
|
)
|
|
|
)
|
|
|
]
|
|
|
@@ -949,7 +945,7 @@ class RePasswordSerializer(serializers.Serializer):
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
message=_(
|
|
|
- "The confirmation password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
+ "确认密码必须为6-20个字符,且必须包含字母、数字和特殊字符。"
|
|
|
)
|
|
|
)
|
|
|
]
|
|
|
@@ -995,7 +991,7 @@ class ResetCurrentUserPassword(serializers.Serializer):
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
message=_(
|
|
|
- "The password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
+ "密码必须为6-20个字符,且必须包含字母、数字和特殊字符。"
|
|
|
)
|
|
|
)
|
|
|
]
|
|
|
@@ -1007,7 +1003,7 @@ class ResetCurrentUserPassword(serializers.Serializer):
|
|
|
validators.RegexValidator(
|
|
|
regex=PASSWORD_REGEX,
|
|
|
message=_(
|
|
|
- "The confirmation password must be 6-20 characters long and must be a combination of letters, numbers, and special characters."
|
|
|
+ "确认密码必须为6-20个字符,且必须包含字母、数字和特殊字符。"
|
|
|
)
|
|
|
)
|
|
|
]
|