aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lin <[email protected]>2020-04-11 14:51:36 -0700
committerJeremy Lin <[email protected]>2020-04-11 14:51:36 -0700
commit86685c1cd2f8d1d8771bcd97d5dd5aa3c3efd4b9 (patch)
tree7e04e5dfbba503f52ab3126f1c6f9e3f938bca4e
parente4d08836e2ccc8bd4f1b926f306aa881f26a33d8 (diff)
downloadvaultwarden-86685c1cd2f8d1d8771bcd97d5dd5aa3c3efd4b9.tar.gz
vaultwarden-86685c1cd2f8d1d8771bcd97d5dd5aa3c3efd4b9.zip
Ensure email domain comparison is case-insensitive
-rw-r--r--src/config.rs2
1 files changed, 1 insertions, 1 deletions
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)