Clean account passwords after creation
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
8636dea67a
commit
b7a92505bc
|
@ -126,14 +126,14 @@
|
||||||
:account-set-name
|
:account-set-name
|
||||||
(fn [{{:accounts/keys [create] :as db} :db :as cofx} _]
|
(fn [{{:accounts/keys [create] :as db} :db :as cofx} _]
|
||||||
(handlers-macro/merge-fx cofx
|
(handlers-macro/merge-fx cofx
|
||||||
{:db (assoc-in db [:accounts/create :show-welcome?] true)
|
{:db db
|
||||||
:dispatch [:navigate-to-clean :usage-data [:account-finalized]]}
|
:dispatch [:navigate-to-clean :usage-data [:account-finalized]]}
|
||||||
(accounts.utils/account-update {:name (:name create)}))))
|
(accounts.utils/account-update {:name (:name create)}))))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:account-finalized
|
:account-finalized
|
||||||
(fn [{db :db} _]
|
(fn [{db :db} _]
|
||||||
{:db db
|
{:db (assoc db :accounts/create {:show-welcome? true})
|
||||||
:dispatch-n [[:navigate-to-clean :home]
|
:dispatch-n [[:navigate-to-clean :home]
|
||||||
[:request-notifications]]}))
|
[:request-notifications]]}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue