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>
This commit is contained in:
Anders Kaseorg 2023-07-19 14:11:18 -07:00 committed by Tim Abbott
parent d87eea1a67
commit 195efb3802
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from disposable_email_domains import blacklist
from disposable_email_domains import blocklist
from django.conf import settings
@ -361,7 +361,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