mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
committed by
Alex Vandiver
parent
948171a839
commit
291cf12c45
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -359,7 +359,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
|
||||||
|
|||||||
Reference in New Issue
Block a user