perf: 系统用户密码不再trim空格

pull/7254/head
ibuler 2021-11-23 10:20:16 +08:00 committed by Jiangjie.Bai
parent 67d084fc43
commit 5c6f1730d5
1 changed files with 1 additions and 0 deletions

View File

@ -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},