fix(@desktop/keycard): authenticate flow, wrong password disabled submit button issue fixed

This commit is contained in:
Sale Djenic 2023-03-23 12:29:16 +01:00 committed by saledjenic
parent 223e4f1bc2
commit cb66ad6118
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ method executePrePrimaryStateCommand*(self: WrongPasswordState, controller: Cont
else:
controller.setKeycardData(updatePredefinedKeycardData(controller.getKeycardData(), PredefinedKeycardData.WrongPassword, add = true))
method getNextPrimaryState*(self: WrongPasswordState, controller: Controller): State =
if self.flowType == FlowType.Authentication:
if not self.success:
return self
method executePreSecondaryStateCommand*(self: WrongPasswordState, controller: Controller) =
if self.flowType == FlowType.Authentication:
controller.tryToObtainDataFromKeychain()