diff --git a/zerver/forms.py b/zerver/forms.py index 14f99aef66..bbbe1f88fa 100644 --- a/zerver/forms.py +++ b/zerver/forms.py @@ -26,9 +26,13 @@ SIGNUP_STRING = u'Your e-mail does not match any existing open organization. ' + if settings.ZULIP_COM: SIGNUP_STRING = u'Your e-mail does not match any existing organization.
' + \ u"The zulip.com service is not taking new customer teams.
" + \ - u"Zulip is open source, so you can install your own Zulip server " + \ + u"" + \ + u"Zulip is open source, so you can install your own Zulip server " + \ u"by following the instructions on www.zulip.org!" - +MIT_VALIDATION_ERROR = u'That user does not exist at MIT or is a ' + \ + u'mailing list. ' + \ + u'If you want to sign up an alias for Zulip, ' + \ + u'contact us.' def get_registration_string(domain): # type: (text_type) -> text_type @@ -54,7 +58,7 @@ def not_mit_mailing_list(value): return True except DNS.Base.ServerError as e: if e.rcode == DNS.Status.NXDOMAIN: - raise ValidationError(mark_safe(u'That user does not exist at MIT or is a mailing list. If you want to sign up an alias for Zulip, contact us.')) + raise ValidationError(mark_safe(MIT_VALIDATION_ERROR)) else: raise return True