1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-26 05:50:29 +01:00

Ensure email domain comparison is case-insensitive

Dieser Commit ist enthalten in:
Jeremy Lin 2020-04-11 14:51:36 -07:00
Ursprung e4d08836e2
Commit 86685c1cd2

Datei anzeigen

@ -566,7 +566,7 @@ impl Config {
warn!("Failed to parse email address '{}'", email); warn!("Failed to parse email address '{}'", email);
return false; return false;
} }
let email_domain = e[0]; let email_domain = e[0].to_lowercase();
let whitelist = self.signups_domains_whitelist(); let whitelist = self.signups_domains_whitelist();
!whitelist.is_empty() && whitelist.split(',').any(|d| d.trim() == email_domain) !whitelist.is_empty() && whitelist.split(',').any(|d| d.trim() == email_domain)