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

This commit is contained in:
shimunn 2019-09-17 21:33:06 +02:00
parent 10a7cb8584
commit 1a262c17cb
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

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