mirror of https://github.com/zulip/zulip.git
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:
parent
d87eea1a67
commit
195efb3802
|
@ -1,4 +1,4 @@
|
||||||
from disposable_email_domains import blacklist
|
from disposable_email_domains import blocklist
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
|
@ -361,7 +361,7 @@ GENERIC_RESERVED_SUBDOMAINS = {
|
||||||
"xoxo",
|
"xoxo",
|
||||||
}
|
}
|
||||||
|
|
||||||
DISPOSABLE_DOMAINS = set(blacklist)
|
DISPOSABLE_DOMAINS = set(blocklist)
|
||||||
|
|
||||||
WHITELISTED_EMAIL_DOMAINS = {
|
WHITELISTED_EMAIL_DOMAINS = {
|
||||||
# Controlled by https://www.abine.com; more legitimate than most
|
# Controlled by https://www.abine.com; more legitimate than most
|
||||||
|
|
Loading…
Reference in New Issue