mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Fix bug in dev login which showed email/password prompts on logins after the first.
(imported from commit 626684ef1da8feb53aca05c9225ee628156f9810)
This commit is contained in:
@@ -14,12 +14,13 @@ from apiclient.sample_tools import client as googleapiclient
|
||||
from oauth2client.crypt import AppIdentityError
|
||||
|
||||
def password_auth_enabled(realm):
|
||||
if realm.domain == 'employees.customer16.invalid':
|
||||
return False
|
||||
elif realm.domain == 'zulip.com' and settings.DEPLOYED:
|
||||
# the dropbox realm is SSO only, but the unit tests still need to be
|
||||
# able to login
|
||||
return False
|
||||
if realm is not None:
|
||||
if realm.domain == 'employees.customer16.invalid':
|
||||
return False
|
||||
elif realm.domain == 'zulip.com' and settings.DEPLOYED:
|
||||
# the dropbox realm is SSO only, but the unit tests still need to be
|
||||
# able to login
|
||||
return False
|
||||
|
||||
for backend in django.contrib.auth.get_backends():
|
||||
if isinstance(backend, EmailAuthBackend):
|
||||
|
||||
Reference in New Issue
Block a user