Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
signup: Add "airsi.de" as an allowed email domain.
Lauryn Menarda4fff91e96ee
diff --git a/zerver/lib/name_restrictions.py b/zerver/lib/name_restrictions.pyindex b570c4d4bc0..d43e97cfc61 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 Falsereturn 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.pyindex 1175b36a40d..79394994590 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"))