Skip to content

Commit

Permalink
hotfix:fix passphrase fake confirm (#1168)
Browse files Browse the repository at this point in the history
Signed-off-by: detailyang <detailyang@gmail.com>
  • Loading branch information
detailyang authored Jun 15, 2021
1 parent 132884d commit f07f027
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forest/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ pub(super) async fn start(config: Config) {
print!("confirm passphrase: ");
std::io::stdout().flush().unwrap();

read_password().expect("Passphrases do not match");
if passphrase != read_password().unwrap() {
println!("passphrases do not match. please retry");
continue;
}
}

let key_store_init_result = KeyStore::new(KeyStoreConfig::Encrypted(
Expand Down

0 comments on commit f07f027

Please sign in to comment.