mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
register_remote_server: Be more explicit about example.com emails.
This commit is contained in:
committed by
Tim Abbott
parent
fc42c70346
commit
a0e5be7f2e
@@ -2663,7 +2663,7 @@ class PushBouncerSignupTest(ZulipTestCase):
|
||||
result = self.client_post("/api/v1/remotes/server/register", request)
|
||||
self.assert_json_error(
|
||||
result,
|
||||
"Invalid server administrator email address: Invalid email address.",
|
||||
"Invalid server administrator email address: example.com is not a valid email domain.",
|
||||
)
|
||||
|
||||
# An example disposable domain.
|
||||
|
@@ -245,7 +245,7 @@ def register_remote_server(
|
||||
|
||||
contact_email_domain = Address(addr_spec=contact_email).domain.lower()
|
||||
if contact_email_domain == "example.com":
|
||||
raise ServerAdminEmailError(_("Invalid email address."))
|
||||
raise ServerAdminEmailError(_("example.com is not a valid email domain."))
|
||||
|
||||
# Check if the domain has an MX record
|
||||
resolver = dns_resolver.Resolver()
|
||||
|
Reference in New Issue
Block a user