Check PIN policy before requesting PIN
Closes str4d/age-plugin-yubikey#34.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user