name_restrictions: Update disposable_email_domains usage.

‘blocklist’ was added in 0.0.35 (with backwards compatibility for the
old name), and type annotations were added in 0.0.91 (with only the
new name).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 195efb3802)
This commit is contained in:
Anders Kaseorg
2023-07-19 14:11:18 -07:00
committed by Alex Vandiver
parent 948171a839
commit 291cf12c45

View File

@@ -1,4 +1,4 @@
from disposable_email_domains import blacklist
from disposable_email_domains import blocklist
from django.conf import settings
@@ -359,7 +359,7 @@ GENERIC_RESERVED_SUBDOMAINS = {
"xoxo",
}
DISPOSABLE_DOMAINS = set(blacklist)
DISPOSABLE_DOMAINS = set(blocklist)
WHITELISTED_EMAIL_DOMAINS = {
# Controlled by https://www.abine.com; more legitimate than most