From 8e98bf024eb5acf4a1cc2a0bf9e9ea7832efefce Mon Sep 17 00:00:00 2001 From: shimun Date: Sat, 17 Oct 2020 18:38:21 +0200 Subject: [PATCH] read_pin --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 7a40941..4890522 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -94,7 +94,7 @@ pub fn get_input( Ok(if interactive { ( if authenticator.pin { - Some(util::read_password("PIN", false)?) + Some(read_pin()?) } else { None }, @@ -103,7 +103,7 @@ pub fn get_input( } else { match (authenticator.pin, authenticator.pin_prefixed) { (true, false) => ( - Some(util::read_password("PIN", false)?), + Some(read_pin()?), salt.obtain_sha256(password_helper)?, ), (true, true) => read_password_pin_prefixed(|| {