feat: remove test_unsafe
This commit is contained in:
parent
abb3eab559
commit
d2839286ce
7 changed files with 8 additions and 29 deletions
|
@ -13,7 +13,6 @@ const MIN_PASSWORD_LENGTH: usize = 8;
|
|||
enum ConfigType {
|
||||
Owasp,
|
||||
Strong,
|
||||
TestUnsafe,
|
||||
}
|
||||
|
||||
impl ConfigType {
|
||||
|
@ -21,7 +20,6 @@ impl ConfigType {
|
|||
match self {
|
||||
ConfigType::Owasp => Params::new(19456, 2, 1, None).expect("Invalid OWASP config"),
|
||||
ConfigType::Strong => Params::new(65540, 3, 4, None).expect("Invalid strong config"),
|
||||
ConfigType::TestUnsafe => Params::new(1024, 1, 1, None).expect("Invalid test config"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +37,6 @@ fn hash_password(password: String, config_type: Option<String>) -> Result<String
|
|||
|
||||
let config_type = match config_type.as_deref() {
|
||||
Some("strong") => ConfigType::Strong,
|
||||
Some("test_unsafe") => ConfigType::TestUnsafe,
|
||||
_ => ConfigType::Owasp,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue