diff --git a/apps/settings/serializers/auth/oidc.py b/apps/settings/serializers/auth/oidc.py index ad30729a0..3ecf2bb6c 100644 --- a/apps/settings/serializers/auth/oidc.py +++ b/apps/settings/serializers/auth/oidc.py @@ -11,7 +11,8 @@ __all__ = [ class CommonSettingSerializer(serializers.Serializer): # OpenID 公有配置参数 (version <= 1.5.8 或 version >= 1.5.8) BASE_SITE_URL = serializers.CharField( - required=False, allow_null=True, max_length=1024, label=_('Base site url') + required=False, allow_null=True, allow_blank=True, + max_length=1024, label=_('Base site url') ) AUTH_OPENID_CLIENT_ID = serializers.CharField( required=False, max_length=1024, label=_('Client Id')