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