From 89d4851ff54e5d796dd4a1953ebf68d04d56de22 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 8 Dec 2023 10:14:04 +0000 Subject: [PATCH] dev: change default value for Github and Google client id if it is not present --- apiserver/plane/app/views/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/app/views/config.py b/apiserver/plane/app/views/config.py index fb32e8570..7c341da4a 100644 --- a/apiserver/plane/app/views/config.py +++ b/apiserver/plane/app/views/config.py @@ -90,8 +90,8 @@ class ConfigurationEndpoint(BaseAPIView): data = {} # Authentication - data["google_client_id"] = GOOGLE_CLIENT_ID - data["github_client_id"] = GITHUB_CLIENT_ID + data["google_client_id"] = GOOGLE_CLIENT_ID if GOOGLE_CLIENT_ID else None + data["github_client_id"] = GITHUB_CLIENT_ID if GITHUB_CLIENT_ID else None data["github_app_name"] = GITHUB_APP_NAME data["magic_login"] = ( bool(EMAIL_HOST_USER) and bool(EMAIL_HOST_PASSWORD)