From ed51858caf4155bf24a5bc9331e7928d7df451a8 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Fri, 29 Jul 2022 10:33:53 +0200 Subject: [PATCH] add PIN check in authenticate --- flow_commands.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flow_commands.go b/flow_commands.go index a27995e..fb355fe 100644 --- a/flow_commands.go +++ b/flow_commands.go @@ -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 {