Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Nov 28, 2023
1 parent 0ae3804 commit d46724b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/status_im2/contexts/profile/create/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

(rf/defn create-profile-and-login
{:events [:profile.create/create-and-login]}
[_ {:keys [display-name password image-path color emoji]}]
[_ {:keys [display-name password image-path color]}]
{::create-profile-and-login
(assoc (profile.config/create)
:displayName display-name
Expand Down
24 changes: 13 additions & 11 deletions src/status_im2/contexts/profile/recover/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(:require
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im2.contexts.emoji-picker.utils :as emoji-picker.utils]
[status-im2.contexts.profile.config :as profile.config]
[utils.re-frame :as rf]
[utils.security.core :as security]))
Expand All @@ -13,15 +14,16 @@
(native-module/restore-account-and-login request)))

(rf/defn recover-profile-and-login
{:events [:profile.recover/recover-and-login]}
[{:keys [db]} {:keys [display-name password image-path color seed-phrase]}]
{:db
(assoc db :onboarding-2/recovered-account? true)
{:events [:profile.recover/recover-and-login]}
[{:keys [db]} {:keys [display-name password image-path color seed-phrase]}]
{:db
(assoc db :onboarding-2/recovered-account? true)

::restore-profile-and-login
(merge (profile.config/create)
{:displayName display-name
:mnemonic (security/safe-unmask-data seed-phrase)
:password (native-module/sha3 (security/safe-unmask-data password))
:imagePath (profile.config/strip-file-prefix image-path)
:customizationColor color})})
::restore-profile-and-login
(merge (profile.config/create)
{:displayName display-name
:mnemonic (security/safe-unmask-data seed-phrase)
:password (native-module/sha3 (security/safe-unmask-data password))
:imagePath (profile.config/strip-file-prefix image-path)
:customizationColor color
:emoji (emoji-picker.utils/random-emoji)})})

0 comments on commit d46724b

Please sign in to comment.