From 86685c1cd2f8d1d8771bcd97d5dd5aa3c3efd4b9 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Sat, 11 Apr 2020 14:51:36 -0700 Subject: [PATCH] Ensure email domain comparison is case-insensitive --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index d72ade30..bfb91828 100644 --- a/src/config.rs +++ b/src/config.rs @@ -566,7 +566,7 @@ impl Config { warn!("Failed to parse email address '{}'", email); return false; } - let email_domain = e[0]; + let email_domain = e[0].to_lowercase(); let whitelist = self.signups_domains_whitelist(); !whitelist.is_empty() && whitelist.split(',').any(|d| d.trim() == email_domain)