From 334fa6cbbf221a008e6cb30bce3220ca882f731d Mon Sep 17 00:00:00 2001 From: Hinton Date: Tue, 9 Jan 2024 13:40:12 +0100 Subject: [PATCH] Resolve feedback --- crates/bitwarden/src/auth/password/strength.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/bitwarden/src/auth/password/strength.rs b/crates/bitwarden/src/auth/password/strength.rs index dbbe4f6d4..a2ea11887 100644 --- a/crates/bitwarden/src/auth/password/strength.rs +++ b/crates/bitwarden/src/auth/password/strength.rs @@ -2,7 +2,7 @@ use std::collections::HashSet; use zxcvbn::zxcvbn; -const GLOBAL_INPUTS: [&str; 3] = ["bitwarden", "BW", "Bitwarden"]; +const GLOBAL_INPUTS: [&str; 3] = ["bitwarden", "bit", "warden"]; pub(crate) fn password_strength( password: String, @@ -26,9 +26,6 @@ pub(crate) fn password_strength( } fn email_to_user_inputs(email: &str) -> Vec { - if email.is_empty() { - return vec![]; - } let parts = email.split_once('@'); match parts { Some((prefix, _)) => prefix