dev: change default value for Github and Google client id if it is not present

This commit is contained in:
pablohashescobar 2023-12-08 10:14:04 +00:00 committed by sriram veeraghanta
parent 49a4c466b7
commit 89d4851ff5

View File

@ -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)