rpassword
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-09-17 21:33:06 +02:00
parent 10a7cb8584
commit 1a262c17cb

View File

@@ -144,7 +144,7 @@ impl PasswordHelper {
use PasswordHelper::*; use PasswordHelper::*;
match self { match self {
Systemd => unimplemented!(), Systemd => unimplemented!(),
Stdin => Ok(ask_str("Password: ")?), Stdin => Ok(rpassword::read_password_from_tty(Some("Password: "))?),
Script(password_helper) => { Script(password_helper) => {
let mut helper_parts = password_helper.split(" "); let mut helper_parts = password_helper.split(" ");