Weak-password disallows confirm code step

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
acolytec3 2019-11-18 21:10:47 -05:00 committed by Andrey Shovkoplyas
parent efcb35504d
commit a38df48691
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 5 additions and 1 deletions

View File

@ -138,13 +138,17 @@
(fx/defn intro-step-forward
{:events [:intro-wizard/step-forward-pressed]}
[{: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)
(on-confirm-failure cofx)
(= step :generate-key)
(init-key-generation cofx)
(and (= step :create-code)
(= weak-password? true))
nil
(and (= step :confirm-code)
(not processing?))
(fx/merge cofx