mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
Weak-password disallows confirm code step
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
efcb35504d
commit
a38df48691
@ -138,13 +138,17 @@
|
|||||||
(fx/defn intro-step-forward
|
(fx/defn intro-step-forward
|
||||||
{:events [:intro-wizard/step-forward-pressed]}
|
{:events [:intro-wizard/step-forward-pressed]}
|
||||||
[{:keys [db] :as cofx} {:keys [skip?] :as opts}]
|
[{:keys [db] :as cofx} {:keys [skip?] :as opts}]
|
||||||
(let [{:keys [step first-time-setup? selected-storage-type processing?]} (:intro-wizard db)]
|
(let [{:keys [step selected-storage-type processing? weak-password?]} (:intro-wizard db)]
|
||||||
(cond (confirm-failure? db)
|
(cond (confirm-failure? db)
|
||||||
(on-confirm-failure cofx)
|
(on-confirm-failure cofx)
|
||||||
|
|
||||||
(= step :generate-key)
|
(= step :generate-key)
|
||||||
(init-key-generation cofx)
|
(init-key-generation cofx)
|
||||||
|
|
||||||
|
(and (= step :create-code)
|
||||||
|
(= weak-password? true))
|
||||||
|
nil
|
||||||
|
|
||||||
(and (= step :confirm-code)
|
(and (= step :confirm-code)
|
||||||
(not processing?))
|
(not processing?))
|
||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user