Clean account passwords after creation

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Stepan Lusnikov 2018-05-01 14:17:27 +08:00 committed by Julien Eluard
parent 8636dea67a
commit b7a92505bc
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 2 additions and 2 deletions

View File

@ -126,14 +126,14 @@
:account-set-name
(fn [{{:accounts/keys [create] :as db} :db :as 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]]}
(accounts.utils/account-update {:name (:name create)}))))
(handlers/register-handler-fx
:account-finalized
(fn [{db :db} _]
{:db db
{:db (assoc db :accounts/create {:show-welcome? true})
:dispatch-n [[:navigate-to-clean :home]
[:request-notifications]]}))