geforkt von mirrored/vaultwarden
Merge pull request #831 from mprasil/whitelist-fix
SIGNUPS_ALLOWED with no whitelist [fixes #830]
Dieser Commit ist enthalten in:
Commit
5352321fe1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -515,7 +515,7 @@ impl Config {
|
||||||
// (it doesn't contain any domains), or if it matches at least
|
// (it doesn't contain any domains), or if it matches at least
|
||||||
// one domain.
|
// one domain.
|
||||||
let whitelist_str = self.signups_domains_whitelist();
|
let whitelist_str = self.signups_domains_whitelist();
|
||||||
whitelist_str.is_empty() || whitelist_str.split(',').filter(|s| !s.is_empty()).any(|d| d == e[0])
|
( whitelist_str.is_empty() && CONFIG.signups_allowed() )|| 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