mirror of https://github.com/zulip/zulip.git
Show the username/password form if ZulipLDAPAuthBackend is enabled.
This commit is contained in:
parent
1482a386c2
commit
3b00029c52
|
@ -22,6 +22,8 @@ def password_auth_enabled(realm):
|
||||||
for backend in django.contrib.auth.get_backends():
|
for backend in django.contrib.auth.get_backends():
|
||||||
if isinstance(backend, EmailAuthBackend):
|
if isinstance(backend, EmailAuthBackend):
|
||||||
return True
|
return True
|
||||||
|
if isinstance(backend, ZulipLDAPAuthBackend):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def dev_auth_enabled():
|
def dev_auth_enabled():
|
||||||
|
|
Loading…
Reference in New Issue