Show the username/password form if ZulipLDAPAuthBackend is enabled.

This commit is contained in:
Tim Abbott 2015-09-29 23:14:17 -07:00
parent 1482a386c2
commit 3b00029c52
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ def password_auth_enabled(realm):
for backend in django.contrib.auth.get_backends():
if isinstance(backend, EmailAuthBackend):
return True
if isinstance(backend, ZulipLDAPAuthBackend):
return True
return False
def dev_auth_enabled():