mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-11 07:29:43 +00:00
Updated deps and fixed some lints
This commit is contained in:
206
Cargo.lock
generated
206
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -41,9 +41,9 @@ rmpv = "0.4.2"
|
||||
chashmap = "2.2.2"
|
||||
|
||||
# A generic serialization/deserialization framework
|
||||
serde = "1.0.102"
|
||||
serde_derive = "1.0.102"
|
||||
serde_json = "1.0.41"
|
||||
serde = "1.0.103"
|
||||
serde_derive = "1.0.103"
|
||||
serde_json = "1.0.42"
|
||||
|
||||
# Logging
|
||||
log = "0.4.8"
|
||||
@ -63,7 +63,7 @@ ring = "0.14.6"
|
||||
uuid = { version = "0.8.1", features = ["v4"] }
|
||||
|
||||
# Date and time library for Rust
|
||||
chrono = "0.4.9"
|
||||
chrono = "0.4.10"
|
||||
|
||||
# TOTP library
|
||||
oath = "0.10.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