Check PIN policy before requesting PIN

Closes str4d/age-plugin-yubikey#34.
This commit is contained in:
Jack Grigg
2021-08-20 15:11:39 +01:00
parent 30f4d00902
commit 2c90195f99
3 changed files with 32 additions and 7 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ impl IdentityPluginV1 for IdentityPlugin {
}
};
if let Err(e) = conn.request_pin(&mut callbacks)? {
if let Err(e) = conn.request_pin_if_necessary(&mut callbacks)? {
callbacks.error(e)?.unwrap();
continue;
}