add PIN check in authenticate

This commit is contained in:
Michele Balistreri 2022-07-29 10:33:53 +02:00
parent 15f654ce3a
commit ed51858caf

View File

@ -224,6 +224,10 @@ func (f *KeycardFlow) authenticate(kc *keycardContext) error {
pinError = PIN
}
if f.cardInfo.pinRetries == 0 {
return f.unblockPIN(kc)
}
err := f.pauseAndWait(EnterPIN, pinError)
if err != nil {