diff --git a/templates/zerver/register.html b/templates/zerver/register.html
index feba92c840..89f72a911b 100644
--- a/templates/zerver/register.html
+++ b/templates/zerver/register.html
@@ -135,43 +135,6 @@ Form is validated both client-side using jquery-validate (see signup.js) and ser
{% endif %}
-
-
-
-
-
- {% trans %}
- Create a corporate organization if your users will be members of the
- same company, where the privacy expectation is that the company's
- organization administrators may need to have access to your users'
- private message history. Zulip features that allow organization
- administrators to take control of accounts or access private message
- history for other users are only available to corporate organizations.
- {% endtrans %}
-
-
- {% trans %}
- Create a community organization for an open source project, social
- group, or other community where the privacy expectation is that you
- and other organization administrators won't have access to your users'
- private message history. Zulip features that allow organization
- administrators to take control of accounts or access private message
- history for other users are disabled in community organizations.
- {% endtrans %}
-
-
-
{% endif %}
@@ -217,10 +180,11 @@ if ($('#id_email').length === 1) {
common.autofocus('#id_full_name');
}
-$("[name=realm_org_type]").on("change", function () {
- $(".blob").hide();
- $("#org_type_blob_" + this.value).show();
-});
+// reset error message displays
+$('#id_team_subdomain_error_client').css('display', 'none');
+if ($('.team_subdomain_error_server').text() === '') {
+ $('.team_subdomain_error_server').css('display', 'none');
+}
$("#timezone").val(moment.tz.guess());
diff --git a/zerver/forms.py b/zerver/forms.py
index fb04060376..b11293a9e3 100644
--- a/zerver/forms.py
+++ b/zerver/forms.py
@@ -58,9 +58,6 @@ class RegistrationForm(forms.Form):
password = forms.CharField(widget=forms.PasswordInput, max_length=MAX_PASSWORD_LENGTH,
required=False)
realm_subdomain = forms.CharField(max_length=Realm.MAX_REALM_SUBDOMAIN_LENGTH, required=False)
- realm_org_type = forms.ChoiceField(((Realm.COMMUNITY, 'Community'),
- (Realm.CORPORATE, 'Corporate')),
- initial=Realm.CORPORATE, required=False)
def __init__(self, *args, **kwargs):
# type: (*Any, **Any) -> None
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py
index 638f658a29..5407391b09 100644
--- a/zerver/lib/test_classes.py
+++ b/zerver/lib/test_classes.py
@@ -281,9 +281,9 @@ class ZulipTestCase(TestCase):
return self.submit_reg_form_for_user(email, password)
def submit_reg_form_for_user(self, email, password, realm_name="Zulip Test",
- realm_subdomain="zuliptest", realm_org_type=Realm.CORPORATE,
+ realm_subdomain="zuliptest",
from_confirmation='', full_name=None, timezone=u'', **kwargs):
- # type: (Text, Text, Optional[Text], Optional[Text], int, Optional[Text], Optional[Text], Optional[Text], **Any) -> HttpResponse
+ # type: (Text, Text, Optional[Text], Optional[Text], Optional[Text], Optional[Text], Optional[Text], **Any) -> HttpResponse
"""
Stage two of the two-step registration process.
@@ -300,7 +300,6 @@ class ZulipTestCase(TestCase):
'realm_name': realm_name,
'realm_subdomain': realm_subdomain,
'key': find_key_by_email(email),
- 'realm_org_type': realm_org_type,
'timezone': timezone,
'terms': True,
'from_confirmation': from_confirmation},
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index a5e4f26de6..067c6df86c 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -1089,7 +1089,6 @@ class UserSignUpTest(ZulipTestCase):
'realm_name': 'Zulip Test',
'realm_subdomain': 'zuliptest',
'key': find_key_by_email(email),
- 'realm_org_type': Realm.CORPORATE,
'terms': True})
# User should now be logged in.
@@ -1124,7 +1123,6 @@ class UserSignUpTest(ZulipTestCase):
'realm_name': 'Zulip Test',
'realm_subdomain': 'zuliptest',
'key': find_key_by_email(email),
- 'realm_org_type': Realm.CORPORATE,
'terms': True,
'from_confirmation': '1'})
self.assert_in_success_response(["You're almost there."], result)
@@ -1156,7 +1154,6 @@ class UserSignUpTest(ZulipTestCase):
'realm_name': 'Zulip Test',
'realm_subdomain': 'zuliptest',
'key': find_key_by_email(email),
- 'realm_org_type': Realm.CORPORATE,
'terms': True,
'full_name': "New Guy",
'from_confirmation': '1'})
@@ -1197,7 +1194,6 @@ class UserSignUpTest(ZulipTestCase):
'realm_name': 'Zulip Test',
'realm_subdomain': 'zuliptest',
'key': find_key_by_email(email),
- 'realm_org_type': Realm.CORPORATE,
'terms': True})
mock_error.assert_called_once()
self.assertEqual(result.status_code, 302)
diff --git a/zerver/views/registration.py b/zerver/views/registration.py
index 93b30c6dda..70c8ccca5c 100644
--- a/zerver/views/registration.py
+++ b/zerver/views/registration.py
@@ -202,8 +202,7 @@ def accounts_register(request):
if realm_creation:
string_id = form.cleaned_data['realm_subdomain']
realm_name = form.cleaned_data['realm_name']
- org_type = int(form.cleaned_data['realm_org_type'])
- realm = do_create_realm(string_id, realm_name, org_type=org_type)[0]
+ realm = do_create_realm(string_id, realm_name)[0]
stream_info = settings.DEFAULT_NEW_REALM_STREAMS