mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-10-28 08:35:23 +00:00
Updated deps and fixed some lints
This commit is contained in:
3 files changed
+121
-97
No files matched your search
+2
-2
@@ -500,13 +500,13 @@ impl Config {
|
||||
}
|
||||
|
||||
pub fn can_signup_user(&self, email: &str) -> bool {
|
||||
let e: Vec<&str> = email.rsplitn(2, "@").collect();
|
||||
let e: Vec<&str> = email.rsplitn(2, '@').collect();
|
||||
if e.len() != 2 || e[0].is_empty() || e[1].is_empty() {
|
||||
warn!("Failed to parse email address '{}'", email);
|
||||
return false
|
||||
}
|
||||
|
||||
self.signups_domains_whitelist().split(",").any(|d| d == e[0])
|
||||
self.signups_domains_whitelist().split(',').any(|d| d == e[0])
|
||||
}
|
||||
|
||||
pub fn delete_user_config(&self) -> Result<(), Error> {
|
||||
|
||||
Reference in new issue
Block a user