mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-23 16:39:30 +00:00
perf: 系统用户密码不再trim空格
This commit is contained in:
parent
2bdaf73d49
commit
084050a4cc
@ -48,6 +48,7 @@ class SystemUserSerializer(AuthSerializerMixin, BulkOrgResourceModelSerializer):
|
||||
extra_kwargs = {
|
||||
'password': {
|
||||
"write_only": True,
|
||||
'trim_whitespace': False,
|
||||
"validators": [validate_password_contains_left_double_curly_bracket]
|
||||
},
|
||||
'public_key': {"write_only": True},
|
||||
|
Loading…
Reference in New Issue
Block a user