Skip to content

Commit

Permalink
Resolve feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Jan 9, 2024
1 parent 51301c7 commit 334fa6c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/bitwarden/src/auth/password/strength.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -26,9 +26,6 @@ pub(crate) fn password_strength(
}

fn email_to_user_inputs(email: &str) -> Vec<String> {
if email.is_empty() {
return vec![];
}
let parts = email.split_once('@');
match parts {
Some((prefix, _)) => prefix
Expand Down

0 comments on commit 334fa6c

Please sign in to comment.