mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 22:58:59 +00:00
fix: 修复用户导入模版中没有 password_strategy 字段问题
This commit is contained in:
parent
c4945b3563
commit
0053d469f9
@ -6486,7 +6486,7 @@ msgstr "是否绑定了虚拟 MFA"
|
||||
|
||||
#: users/serializers/user.py:97
|
||||
msgid "Can public key authentication"
|
||||
msgstr "公钥认证"
|
||||
msgstr "可以使用公钥认证"
|
||||
|
||||
#: users/serializers/user.py:165
|
||||
msgid "Avatar url"
|
||||
|
@ -81,8 +81,8 @@ class UserSerializer(RolesSerializerMixin, CommonBulkSerializerMixin, serializer
|
||||
password_strategy = LabeledChoiceField(
|
||||
choices=PasswordStrategy.choices,
|
||||
default=PasswordStrategy.email,
|
||||
allow_null=True,
|
||||
required=False,
|
||||
write_only=True,
|
||||
label=_("Password strategy"),
|
||||
)
|
||||
mfa_enabled = serializers.BooleanField(read_only=True, label=_("MFA enabled"))
|
||||
|
Loading…
Reference in New Issue
Block a user