mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
email_validation: Restore case-insensitive domain validation.
This was broken by commit b945aa3443
(#22604), because email_to_domain implicitly lowercased the result.
No adjustment is needed for is_disposable_domain, which already
lowercases its argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
8dc0653740
commit
c5c180fda3
@@ -62,7 +62,7 @@ def get_realm_email_validator(realm: Realm) -> Callable[[str], None]:
|
||||
if "+" in address.username:
|
||||
raise EmailContainsPlusError
|
||||
|
||||
domain = address.domain
|
||||
domain = address.domain.lower()
|
||||
|
||||
if domain in allowed_domains:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user