mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Rename USING_SSO to something more clear.
(imported from commit 94e8ae84b01419783872a5d09bafe5c2eb933c18)
This commit is contained in:
@@ -36,7 +36,7 @@ subprocess.check_call(["supervisorctl", "start", "zulip-tornado zulip-django zul
|
|||||||
logging.info("Starting workers")
|
logging.info("Starting workers")
|
||||||
subprocess.check_call(["supervisorctl", "start", "zulip-workers:*"])
|
subprocess.check_call(["supervisorctl", "start", "zulip-workers:*"])
|
||||||
|
|
||||||
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO'])
|
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_APACHE_SSO'])
|
||||||
if using_sso.strip() == 'True':
|
if using_sso.strip() == 'True':
|
||||||
logging.info("Restarting Apache WSGI process...")
|
logging.info("Restarting Apache WSGI process...")
|
||||||
subprocess.check_call(["pkill", "-f", "apache2", "-u", "zulip"])
|
subprocess.check_call(["pkill", "-f", "apache2", "-u", "zulip"])
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ TUTORIAL_ENABLED = True
|
|||||||
ZULIP_IOS_APP_ID = 'com.zulip.Zulip'
|
ZULIP_IOS_APP_ID = 'com.zulip.Zulip'
|
||||||
DBX_IOS_APP_ID = 'com.dropbox.Zulip'
|
DBX_IOS_APP_ID = 'com.dropbox.Zulip'
|
||||||
|
|
||||||
USING_SSO = ('zproject.backends.ZulipRemoteUserBackend' in AUTHENTICATION_BACKENDS)
|
USING_APACHE_SSO = ('zproject.backends.ZulipRemoteUserBackend' in AUTHENTICATION_BACKENDS)
|
||||||
|
|
||||||
if (len(AUTHENTICATION_BACKENDS) == 1 and
|
if (len(AUTHENTICATION_BACKENDS) == 1 and
|
||||||
AUTHENTICATION_BACKENDS[0] == "zproject.backends.ZulipRemoteUserBackend"):
|
AUTHENTICATION_BACKENDS[0] == "zproject.backends.ZulipRemoteUserBackend"):
|
||||||
|
|||||||
Reference in New Issue
Block a user