fix bio-metric login (#19293)

This commit is contained in:
Parvesh Monu 2024-03-18 19:50:10 +05:30 committed by GitHub
parent 60d6a5c3cc
commit 6c5242b3e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -177,12 +177,13 @@
:profile.login/get-user-password-success
(fn [{:keys [db]} [password]]
(when password
(let [{:keys [key-uid password]} (:profile/login db)]
{:db (-> db
(assoc-in [:profile/login :password] password)
(assoc-in [:profile/login :processing] true))
:fx [[:set-root :progress]
[:effects.profile/login [key-uid (security/safe-unmask-data password)]]]}))))
[:effects.profile/login
[(get-in db [:profile/login :key-uid])
(security/safe-unmask-data password)]]]})))
(rf/reg-event-fx
:profile.login/biometric-success