Updated client kdf iterations to 100000 and fixed some lints

This commit is contained in:
Daniel García
2019-09-05 21:56:12 +02:00
parent dda244edd8
commit df8114f8be
7 changed files with 105 additions and 116 deletions

View File

@ -263,7 +263,7 @@ impl EmailTokenData {
}
pub fn add_attempt(&mut self) {
self.attempts = self.attempts + 1;
self.attempts += 1;
}
pub fn to_json(&self) -> String {
@ -281,7 +281,7 @@ impl EmailTokenData {
/// Takes an email address and obscures it by replacing it with asterisks except two characters.
pub fn obscure_email(email: &str) -> String {
let split: Vec<&str> = email.split("@").collect();
let split: Vec<&str> = email.split('@').collect();
let mut name = split[0].to_string();
let domain = &split[1];