mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-22 05:06:37 +00:00
Ensure email domain comparison is case-insensitive
This commit is contained in:
parent
e4d08836e2
commit
86685c1cd2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user