Error on login with touch ID enabled #19055 (#19057)

This commit is contained in:
flexsurfer 2024-02-29 14:56:44 +01:00 committed by GitHub
parent c15084fffa
commit da22063308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -170,15 +170,16 @@
(defn password-input
[]
(let [auth-method (rf/sub [:auth-method])
on-press-biometrics (when (= auth-method constants/auth-method-biometric)
(rn/use-callback
(fn []
on-press-biometrics (rn/use-callback
(fn []
(when (= auth-method constants/auth-method-biometric)
(rf/dispatch [:biometric/authenticate
{:on-success #(rf/dispatch
[:profile.login/biometric-success])
:on-fail #(rf/dispatch
[:profile.login/biometric-auth-fail
%])}]))))]
%])}])))
[auth-method])]
[standard-authentication/password-input
{:shell? true
:blur? true