mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
Enable encryption when creating new repo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user