Make password_auth_enabled() take a realm object

This will actually be used in an upcoming commit.

(imported from commit 5d3db685a245899b2523440398f2ed2f0cfec4f4)
This commit is contained in:
Zev Benjamin
2014-03-27 19:45:03 -04:00
parent 2cfeef606c
commit 2e1d5ffd1c
4 changed files with 21 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ from openid.consumer.consumer import SUCCESS
from apiclient.sample_tools import client as googleapiclient
from oauth2client.crypt import AppIdentityError
def password_auth_enabled():
def password_auth_enabled(realm):
for backend in django.contrib.auth.get_backends():
if isinstance(backend, EmailAuthBackend):
return True