fix(general): when biometric is setup the authentication flow is not correct showing the password one instead
Closes #14173
This commit is contained in:
parent
67f0f38cf9
commit
cbf0fd3d71
|
@ -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)
|
||||
|
|
|
@ -551,8 +551,13 @@ proc proceedWithRunFlow[T](self: Module[T], flowToRun: FlowType, keyUid: string,
|
|||
self.controller.tryToObtainDataFromKeychain()
|
||||
return
|
||||
self.view.setCurrentState(newEnterPasswordState(flowToRun, nil))
|
||||
self.authenticationPopupIsAlreadyRunning = true
|
||||
self.controller.readyToDisplayPopup()
|
||||
if singletonInstance.userProfile.getUsingBiometricLogin():
|
||||
self.tmpLocalState = newReadingKeycardState(flowToRun, nil)
|
||||
self.controller.connectKeychainSignals()
|
||||
self.controller.tryToObtainDataFromKeychain()
|
||||
else:
|
||||
self.authenticationPopupIsAlreadyRunning = true
|
||||
self.controller.readyToDisplayPopup()
|
||||
return
|
||||
else:
|
||||
self.prepareKeyPairItemForAuthentication(keyUid)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue