mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 登录username长度校验错误
This commit is contained in:
parent
f6d84b5c53
commit
88447ebdd7
|
|
@ -37,7 +37,7 @@ user_cache = cache.caches['user_cache']
|
|||
class LoginSerializer(ApiMixin, serializers.Serializer):
|
||||
username = serializers.CharField(required=True,
|
||||
validators=[
|
||||
validators.MaxLengthValidator(limit_value=20,
|
||||
validators.MaxLengthValidator(limit_value=1024,
|
||||
message=ExceptionCodeConstants.USERNAME_ERROR.value.message),
|
||||
validators.MinLengthValidator(limit_value=6,
|
||||
message=ExceptionCodeConstants.USERNAME_ERROR.value.message)
|
||||
|
|
|
|||
Loading…
Reference in New Issue