read_pin
This commit is contained in:
parent
49a7512743
commit
8e98bf024e
@ -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(|| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user