fix(keycard): copy keycard flow is blocked if the keycard user is copying to is locked and doesn't belong to any of the app's known keypairs

This commit is contained in:
Sale Djenic 2024-01-29 13:01:59 +01:00 committed by saledjenic
parent 4405397e18
commit d8102fa2b3
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ method executePrePrimaryStateCommand*(self: WrongKeycardState, controller: Contr
controller.terminateCurrentFlow(lastStepInTheCurrentFlow = true, nextFlow = FlowType.MigrateFromAppToKeycard,
forceFlow = controller.getForceFlow(), nextKeyUid = controller.getKeyPairForProcessing().getKeyUid())
return
controller.terminateCurrentFlow(lastStepInTheCurrentFlow = true)
if self.flowType == FlowType.MigrateFromAppToKeycard:
controller.runLoginFlow()
return