diff --git a/parity/main.rs b/parity/main.rs index a01612c589e..696ee38625e 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -210,12 +210,15 @@ fn execute_client(conf: Configuration) { fn execute_account_cli(conf: Configuration) { use util::keys::store::SecretStore; use rpassword::read_password; + use std::io; let mut secret_store = SecretStore::new_in(Path::new(&conf.keys_path())); if conf.args.cmd_new { println!("Please note that password is NOT RECOVERABLE."); print!("Type password: "); + io::stdout().flush().ok().expect("Could not flush stdout"); let password = read_password().unwrap(); print!("Repeat password: "); + io::stdout().flush().ok().expect("Could not flush stdout"); let password_repeat = read_password().unwrap(); if password != password_repeat { println!("Passwords do not match!");