zulip/zerver
Erik Tews 1ecb87ec80 auth: show _OR_ during login only when other methods are available.
There might be good reasons to have other external authentication
methods such as SAML configured, but none of them is available.

This happens, for example, when you have enabled SAML so that Zulip is
able to generate the metadata in XML format, but you haven't
configured an IdP yet. This commit makes sure that the phrase _OR_ is
only shown on the login/account page when there are actually other
authentication methods available. When they are just configured, but
not available yet, the page looks like as if no external
authentication methods are be configured.

We achieve this by deleting any_social_backend_enabled, which was very
similar to page_params.external_authentication_methods, which
correctly has one entry per configured SAML IdP.
2021-07-20 14:29:48 -07:00
..
data_import data_import: Rename mattermost_user to user_handler. 2021-07-15 14:28:36 -07:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib rate_limiter: Avoid strong reference to user. 2021-07-20 10:32:29 -07:00
management python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
migrations billing: Fix options and help text for sponsorship requests. 2021-07-18 20:48:27 -07:00
openapi settings: Merge settings API endpoints. 2021-07-19 21:14:32 -07:00
tests settings: Merge settings API endpoints. 2021-07-19 21:14:32 -07:00
tornado tornado: Call close() on Django HttpResponse objects. 2021-07-20 11:07:36 -07:00
views auth: show _OR_ during login only when other methods are available. 2021-07-20 14:29:48 -07:00
webhooks python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
worker worker: Rewrite MissedMessageWorker to not be lossy. 2021-07-13 17:21:38 -07:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py auth: show _OR_ during login only when other methods are available. 2021-07-20 14:29:48 -07:00
decorator.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Fix mypy no_implicit_reexport errors. 2021-07-16 14:02:31 -07:00
logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
middleware.py Revert "Revert "request: Refactor to record rate limit data using ZulipRequestNotes."" 2021-07-19 16:48:23 -07:00
models.py billing: Fix options and help text for sponsorship requests. 2021-07-18 20:48:27 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00