mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
@@ -512,8 +512,9 @@ def login_page(request, **kwargs):
|
||||
extra_context['direct_admins'] = [u for u in users if u.is_realm_admin]
|
||||
extra_context['direct_users'] = [u for u in users if not u.is_realm_admin]
|
||||
|
||||
if 'new_realm' in request.POST:
|
||||
# If we're switching realms, redirect to that realm
|
||||
if realm and 'new_realm' in request.POST:
|
||||
# If we're switching realms, redirect to that realm, but
|
||||
# only if it actually exists.
|
||||
return HttpResponseRedirect(realm.uri)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user