home.py: move password_auth_enabled as realm_password_auth_enabled.

Part of #3853.
This commit is contained in:
fionabunny
2017-04-19 23:21:31 -07:00
committed by Tim Abbott
parent 635a05fe80
commit b7c6d46bf9
6 changed files with 13 additions and 10 deletions

View File

@@ -26,7 +26,6 @@ from zerver.lib.i18n import get_language_list, get_language_name, \
from zerver.lib.push_notifications import num_push_devices_for_user
from zerver.lib.streams import access_stream_by_name
from zerver.lib.utils import statsd, get_subdomain
from zproject.backends import password_auth_enabled
import calendar
import datetime
@@ -209,10 +208,6 @@ def home_real(request):
server_inline_image_preview = settings.INLINE_IMAGE_PREVIEW,
server_inline_url_embed_preview = settings.INLINE_URL_EMBED_PREVIEW,
# realm data.
# TODO: Move all of these data to register_ret and pull from there
password_auth_enabled = password_auth_enabled(user_profile.realm),
# user_profile data.
# TODO: Move all of these data to register_ret and pull from there
fullname = user_profile.full_name,
@@ -308,6 +303,7 @@ def home_real(request):
'realm_name',
'realm_description',
'realm_name_changes_disabled',
'realm_password_auth_enabled',
'realm_presence_disabled',
'realm_restricted_to_domain',
'realm_show_digest_email',