mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Fix puk change
Fix https://github.com/Nitrokey/piv-authenticator/issues/37
This commit is contained in:
committed by
Nicolas Stalder
parent
4fcc29e2fa
commit
f6b4f35b93
+1
-1
@@ -376,7 +376,7 @@ impl Persistent {
|
||||
) -> bool {
|
||||
let old_puk = Bytes::from_slice(&old_value.0).expect("Convertion of static array");
|
||||
let new_puk = Bytes::from_slice(&new_value.0).expect("Convertion of static array");
|
||||
try_syscall!(client.change_pin(PinType::UserPin, old_puk, new_puk))
|
||||
try_syscall!(client.change_pin(PinType::Puk, old_puk, new_puk))
|
||||
.map(|r| r.success)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user