Enable encryption when creating new repo

This commit is contained in:
Kan-Ru Chen
2021-01-14 00:52:43 +09:00
parent c84e42c9c3
commit bedb51984c
2 changed files with 22 additions and 11 deletions

View File

@@ -7,6 +7,7 @@
[frontend.text :as text]
[frontend.git :as git]
[frontend.db :as db]
[frontend.encrypt :as e]
[lambdaisland.glogi :as log]
[cljs.reader :as reader]
[frontend.spec :as spec]
@@ -77,6 +78,8 @@
(defn reset-config!
[repo-url content]
(when-let [content (or content (get-config repo-url))]
;; When to generate new mnemonic?
(e/generate-mnemonic-and-save)
(let [config (try
(reader/read-string content)
(catch js/Error e