mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 10:14:04 +00:00
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:
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user