bug #3571: Validation error 'Password confirmation doesn't match password' is shown after you fix value in 'Confirm password'
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
5529772858
commit
7168896ffe
|
@ -44,7 +44,7 @@
|
||||||
[text-input/text-input-with-label
|
[text-input/text-input-with-label
|
||||||
{:label (get-in steps [step :input-label])
|
{:label (get-in steps [step :input-label])
|
||||||
:placeholder (get-in steps [step :input-placeholder])
|
:placeholder (get-in steps [step :input-placeholder])
|
||||||
:on-change-text #(re-frame/dispatch [:set-in [:accounts/create (get-in steps [step :input-key])] %])
|
:on-change-text #(re-frame/dispatch [:account-set-input-text (get-in steps [step :input-key]) %])
|
||||||
:secure-text-entry (boolean (#{:enter-password :confirm-password} step))
|
:secure-text-entry (boolean (#{:enter-password :confirm-password} step))
|
||||||
:error error}])
|
:error error}])
|
||||||
|
|
||||||
|
|
|
@ -215,6 +215,11 @@
|
||||||
:dispatch-n [[:navigate-to-clean :home]
|
:dispatch-n [[:navigate-to-clean :home]
|
||||||
[:request-notifications]]}))
|
[:request-notifications]]}))
|
||||||
|
|
||||||
|
(handlers/register-handler-fx
|
||||||
|
:account-set-input-text
|
||||||
|
(fn [{db :db} [_ input-key text]]
|
||||||
|
{:db (update db :accounts/create merge {input-key text :error nil})}))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:update-sign-in-time
|
:update-sign-in-time
|
||||||
(fn [{db :db now :now} _]
|
(fn [{db :db now :now} _]
|
||||||
|
|
Loading…
Reference in New Issue