fix: 修复修改用户信息后,绑定丢失

perf: 还原提示文案
pull/7103/head
ibuler 3 years ago committed by Jiangjie.Bai
parent 09d4228182
commit d44656aa10

@ -9,7 +9,7 @@ class OtherSettingSerializer(serializers.Serializer):
)
OTP_ISSUER_NAME = serializers.CharField(
required=False, max_length=1024, label=_('OTP issuer name'),
required=False, max_length=16, label=_('OTP issuer name'),
)
OTP_VALID_WINDOW = serializers.IntegerField(
min_value=1, max_value=10,

@ -31,7 +31,7 @@
{% if confirm_button %}
{{ confirm_button }}
{% else %}
{% trans 'Go' %}
{% trans 'Confirm' %}
{% endif %}
</a>
</div>

@ -70,6 +70,7 @@ class UserSerializer(CommonBulkSerializerMixin, serializers.ModelSerializer):
read_only_fields = [
'date_joined', 'last_login', 'created_by', 'is_first_login',
'wecom_id', 'dingtalk_id', 'feishu_id'
]
extra_kwargs = {
'password': {'write_only': True, 'required': False, 'allow_null': True, 'allow_blank': True},

Loading…
Cancel
Save