forked from github/plane
dev: change default value for Github and Google client id if it is not present
This commit is contained in:
parent
49a4c466b7
commit
89d4851ff5
@ -90,8 +90,8 @@ class ConfigurationEndpoint(BaseAPIView):
|
|||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
# Authentication
|
# Authentication
|
||||||
data["google_client_id"] = GOOGLE_CLIENT_ID
|
data["google_client_id"] = GOOGLE_CLIENT_ID if GOOGLE_CLIENT_ID else None
|
||||||
data["github_client_id"] = GITHUB_CLIENT_ID
|
data["github_client_id"] = GITHUB_CLIENT_ID if GITHUB_CLIENT_ID else None
|
||||||
data["github_app_name"] = GITHUB_APP_NAME
|
data["github_app_name"] = GITHUB_APP_NAME
|
||||||
data["magic_login"] = (
|
data["magic_login"] = (
|
||||||
bool(EMAIL_HOST_USER) and bool(EMAIL_HOST_PASSWORD)
|
bool(EMAIL_HOST_USER) and bool(EMAIL_HOST_PASSWORD)
|
||||||
|
Loading…
Reference in New Issue
Block a user