Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Give a better error message for [email protected] emails.
Alex Vandiver9d66a8eb73d1
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex 4091d510600..49d85436ba6 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -5239,7 +5239,7 @@ class PushBouncerSignupTest(ZulipTestCase):request["contact_email"] = "[email protected]"result = self.client_post("/api/v1/remotes/server/register", request)- self.assert_json_error(result, "Invalid address.")+ self.assert_json_error(result, "Invalid email address.")# An example disposable domain.request["contact_email"] = "[email protected]"diff --git a/zilencer/views.py b/zilencer/views.pyindex d2789ef59f3..def17306c14 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -167,7 +167,7 @@ def register_remote_server(contact_email_domain = Address(addr_spec=contact_email).domain.lower()if contact_email_domain == "example.com":- raise JsonableError(_("Invalid address."))+ raise JsonableError(_("Invalid email address."))# Check if the domain has an MX recordtry: