fix: 首次登录强制开启MFA页面bug

pull/10159/head
halo 2023-04-05 20:36:18 +08:00 committed by Jiangjie.Bai
parent e34fbce082
commit ec2c8538d9
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class UserProfileSerializer(UserSerializer):
MFA_LEVEL_CHOICES = (
(0, _('Disable')),
(1, _('Enable')),
(2, _("Force enable")),
)
public_key_comment = serializers.CharField(
source='get_public_key_comment', required=False, read_only=True, max_length=128