From 92e8cad42ad2db01d2f799a8476f63469addffcf Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Wed, 1 Feb 2017 15:31:22 -0800 Subject: [PATCH] dev login page: Add all non-zulip users as community users. We create a new realm and user when running populate_analytics_db.py, in a realm that is neither 'zulip' nor 'simple'. --- zerver/views/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/views/auth.py b/zerver/views/auth.py index fcae008665..47db7c8edd 100644 --- a/zerver/views/auth.py +++ b/zerver/views/auth.py @@ -347,7 +347,7 @@ def login_page(request, **kwargs): if not u.is_realm_admin and u.realm.string_id == 'zulip'] extra_context['community_users'] = [ u.email for u in users - if u.realm.string_id == 'simple'] + if u.realm.string_id != 'zulip'] template_response = django_login_page( request, authentication_form=OurAuthenticationForm, extra_context=extra_context, **kwargs)