mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
enhance(e2ee): update :iterations for en/decrypt fns (1)
This commit is contained in:
@@ -301,7 +301,7 @@
|
||||
derived-key (.deriveKey subtle
|
||||
#js {:name "PBKDF2"
|
||||
:salt salt
|
||||
:iterations 100000
|
||||
:iterations 600000
|
||||
:hash "SHA-256"}
|
||||
password-key
|
||||
#js {:name "AES-GCM" :length 256}
|
||||
@@ -330,7 +330,7 @@
|
||||
derived-key (.deriveKey subtle
|
||||
#js {:name "PBKDF2"
|
||||
:salt salt
|
||||
:iterations 100000
|
||||
:iterations 600000
|
||||
:hash "SHA-256"}
|
||||
password-key
|
||||
#js {:name "AES-GCM" :length 256}
|
||||
|
||||
@@ -1312,7 +1312,7 @@
|
||||
(let [on-submit (fn []
|
||||
(-> (p/do!
|
||||
(set-reset-password-status! "Updating password ...")
|
||||
(state/<invoke-db-worker :thread-api/reset-e2ee-password
|
||||
(state/<invoke-db-worker :thread-api/change-e2ee-password
|
||||
token refresh-token user-uuid current-password new-password)
|
||||
(set-reset-password-status! "Password updated successfully!"))
|
||||
(p/catch (fn [e]
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
(catch Cancelled _)
|
||||
(catch :default e e))))
|
||||
|
||||
(def-thread-api :thread-api/reset-e2ee-password
|
||||
(def-thread-api :thread-api/change-e2ee-password
|
||||
[token refresh-token user-uuid old-password new-password]
|
||||
(m/sp
|
||||
(let [{:keys [get-ws-create-task]} (ws-util/gen-get-ws-create-map--memoized (ws-util/get-ws-url token))]
|
||||
|
||||
Reference in New Issue
Block a user