chore: Do not validate password if file exists
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
75625f53b4
commit
e8a18d4f53
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ pub fn master_password_prompt(is_new_vaults_file: bool) -> LprsResult<[u8; 32]>
|
|||
secret_prompt(
|
||||
"Master Password:",
|
||||
is_new_vaults_file,
|
||||
Some(vec![Box::new(password_validator)]),
|
||||
is_new_vaults_file.then(|| vec![Box::new(password_validator) as Box<dyn StringValidator>]),
|
||||
)
|
||||
.map(|p| sha2::Sha256::digest(p).into())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue