fix(@desktop/keycard): `keyUid` param set for all (keycard&regular users) authentication

This commit is contained in:
Sale Djenic 2023-03-22 16:46:37 +01:00 committed by saledjenic
parent bd9652cec8
commit 204f47229c
1 changed files with 7 additions and 3 deletions

View File

@ -573,9 +573,13 @@ proc terminateCurrentFlow*(self: Controller, lastStepInTheCurrentFlow: bool) =
lastStepInTheCurrentFlow: lastStepInTheCurrentFlow) lastStepInTheCurrentFlow: lastStepInTheCurrentFlow)
if lastStepInTheCurrentFlow: if lastStepInTheCurrentFlow:
let exportedEncryptionPubKey = flowEvent.generatedWalletAccount.publicKey let exportedEncryptionPubKey = flowEvent.generatedWalletAccount.publicKey
self.tmpFlowData.password = if exportedEncryptionPubKey.len > 0: exportedEncryptionPubKey else: self.getPassword() if exportedEncryptionPubKey.len > 0:
self.tmpFlowData.pin = self.getPin() self.tmpFlowData.password = exportedEncryptionPubKey
self.tmpFlowData.keyUid = flowEvent.keyUid self.tmpFlowData.pin = self.getPin()
self.tmpFlowData.keyUid = flowEvent.keyUid
else:
self.tmpFlowData.password = self.getPassword()
self.tmpFlowData.keyUid = singletonInstance.userProfile.getKeyUid()
## we're trying to sync a keycard state on popup close if: ## we're trying to sync a keycard state on popup close if:
## - shared module is not run from the onboarding flow ## - shared module is not run from the onboarding flow