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

This commit is contained in:
shimun 2020-10-17 18:38:21 +02:00
parent 49a7512743
commit 8e98bf024e
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -94,7 +94,7 @@ pub fn get_input(
Ok(if interactive { Ok(if interactive {
( (
if authenticator.pin { if authenticator.pin {
Some(util::read_password("PIN", false)?) Some(read_pin()?)
} else { } else {
None None
}, },
@ -103,7 +103,7 @@ pub fn get_input(
} else { } else {
match (authenticator.pin, authenticator.pin_prefixed) { match (authenticator.pin, authenticator.pin_prefixed) {
(true, false) => ( (true, false) => (
Some(util::read_password("PIN", false)?), Some(read_pin()?),
salt.obtain_sha256(password_helper)?, salt.obtain_sha256(password_helper)?,
), ),
(true, true) => read_password_pin_prefixed(|| { (true, true) => read_password_pin_prefixed(|| {