fix(@desktop/keycard): authenticate flow, wrong password disabled submit button issue fixed
This commit is contained in:
parent
223e4f1bc2
commit
cb66ad6118
|
@ -20,6 +20,11 @@ method executePrePrimaryStateCommand*(self: WrongPasswordState, controller: Cont
|
||||||
else:
|
else:
|
||||||
controller.setKeycardData(updatePredefinedKeycardData(controller.getKeycardData(), PredefinedKeycardData.WrongPassword, add = true))
|
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) =
|
method executePreSecondaryStateCommand*(self: WrongPasswordState, controller: Controller) =
|
||||||
if self.flowType == FlowType.Authentication:
|
if self.flowType == FlowType.Authentication:
|
||||||
controller.tryToObtainDataFromKeychain()
|
controller.tryToObtainDataFromKeychain()
|
||||||
|
|
Loading…
Reference in New Issue