perf: 修改账号列表 secret 字段名称 密钥/密码

This commit is contained in:
Bai
2023-01-31 16:05:28 +08:00
committed by Jiangjie.Bai
parent 6b4dbe6554
commit a7b744db10
5 changed files with 518 additions and 451 deletions

View File

@@ -16,7 +16,7 @@ class AuthValidateMixin(serializers.Serializer):
choices=SecretType.choices, required=True, label=_('Secret type')
)
secret = EncryptedField(
label=_('Secret'), required=False, max_length=40960, allow_blank=True,
label=_('Secret/Password'), required=False, max_length=40960, allow_blank=True,
allow_null=True, write_only=True,
)
passphrase = serializers.CharField(