fix(general): when biometric is setup the authentication flow is not correct showing the password one instead

Closes #14173
This commit is contained in:
Sale Djenic 2024-03-27 11:44:49 +01:00 committed by Jonathan Rainville
parent 6dfc291105
commit 803f334959
3 changed files with 9 additions and 3 deletions

View File

@ -180,7 +180,6 @@ proc checkKeycardAvailability*(self: Controller) =
proc init*(self: Controller, fullConnect = true) =
self.connectKeycardReponseSignal()
self.connectKeychainSignals()
var handlerId = self.events.onWithUUID(SIGNAL_SHARED_KEYCARD_MODULE_USER_AUTHENTICATED) do(e: Args):
let args = SharedKeycarModuleArgs(e)

View File

@ -551,6 +551,11 @@ proc proceedWithRunFlow[T](self: Module[T], flowToRun: FlowType, keyUid: string,
self.controller.tryToObtainDataFromKeychain()
return
self.view.setCurrentState(newEnterPasswordState(flowToRun, nil))
if singletonInstance.userProfile.getUsingBiometricLogin():
self.tmpLocalState = newReadingKeycardState(flowToRun, nil)
self.controller.connectKeychainSignals()
self.controller.tryToObtainDataFromKeychain()
else:
self.authenticationPopupIsAlreadyRunning = true
self.controller.readyToDisplayPopup()
return

View File

@ -10,6 +10,8 @@ import shared.stores 1.0 as SharedStores
import shared.popups.keycard 1.0
import shared.stores.send 1.0
import StatusQ.Core.Theme 0.1
import AppLayouts.Wallet.controls 1.0
import AppLayouts.Wallet.stores 1.0