diff --git a/zerver/lib/name_restrictions.py b/zerver/lib/name_restrictions.py index b570c4d4bc..d43e97cfc6 100644 --- a/zerver/lib/name_restrictions.py +++ b/zerver/lib/name_restrictions.py @@ -21,7 +21,7 @@ def is_reserved_subdomain(subdomain: str) -> bool: def is_disposable_domain(domain: str) -> bool: - if domain.lower() in WHITELISTED_EMAIL_DOMAINS: + if domain.lower() in OVERRIDE_ALLOW_EMAIL_DOMAINS: return False return domain.lower() in DISPOSABLE_DOMAINS @@ -371,7 +371,8 @@ GENERIC_RESERVED_SUBDOMAINS = { DISPOSABLE_DOMAINS = set(blocklist) -WHITELISTED_EMAIL_DOMAINS = { +OVERRIDE_ALLOW_EMAIL_DOMAINS = { + "airsi.de", # Controlled by https://www.abine.com; more legitimate than most # disposable domains "opayq.com", diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index 1175b36a40..7939499459 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -4683,7 +4683,7 @@ class TwoFactorAuthTest(ZulipTestCase): class NameRestrictionsTest(ZulipTestCase): - def test_whitelisted_disposable_domains(self) -> None: + def test_override_allow_email_domains(self) -> None: self.assertFalse(is_disposable_domain("OPayQ.com"))