mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
fix: 首次登录不能提交
This commit is contained in:
@@ -101,7 +101,7 @@ class UserProfileSerializer(UserSerializer):
|
||||
)
|
||||
mfa_level = serializers.ChoiceField(choices=MFA_LEVEL_CHOICES, label=_('MFA'), required=False)
|
||||
guide_url = serializers.SerializerMethodField()
|
||||
receive_backends = serializers.ListField(child=serializers.CharField())
|
||||
receive_backends = serializers.ListField(child=serializers.CharField(), read_only=True)
|
||||
|
||||
class Meta(UserSerializer.Meta):
|
||||
fields = UserSerializer.Meta.fields + [
|
||||
|
Reference in New Issue
Block a user