geforkt von mirrored/vaultwarden
Ursprung
d212dfe735
Commit
e277f7d1c1
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
|
@ -510,7 +510,12 @@ impl Config {
|
||||||
warn!("Failed to parse email address '{}'", email);
|
warn!("Failed to parse email address '{}'", email);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
self.signups_domains_whitelist().split(',').any(|d| d == e[0])
|
|
||||||
|
// Allow signups if the whitelist is empty/not configured
|
||||||
|
// (it doesn't contain any domains), or if it matches at least
|
||||||
|
// one domain.
|
||||||
|
let whitelist_str = self.signups_domains_whitelist();
|
||||||
|
whitelist_str.is_empty() || whitelist_str.split(',').filter(|s| !s.is_empty()).any(|d| d == e[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn delete_user_config(&self) -> Result<(), Error> {
|
pub fn delete_user_config(&self) -> Result<(), Error> {
|
||||||
|
|
Laden …
In neuem Issue referenzieren