We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent defb3b9 commit 03cac7eCopy full SHA for 03cac7e
1 file changed
redash/settings/__init__.py
@@ -50,7 +50,7 @@ def all_settings():
50
51
GOOGLE_CLIENT_ID = os.environ.get("REDASH_GOOGLE_CLIENT_ID", "")
52
GOOGLE_CLIENT_SECRET = os.environ.get("REDASH_GOOGLE_CLIENT_SECRET", "")
53
-GOOGLE_OAUTH_ENABLED = GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
+GOOGLE_OAUTH_ENABLED = bool(GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET)
54
55
# Enables the use of an externally-provided and trusted remote user via an HTTP
56
# header. The "user" must be an email address.
0 commit comments