From 676998b83b31661eca41579905936a18c3b62645 Mon Sep 17 00:00:00 2001 From: flexsurfer Date: Thu, 12 Dec 2024 16:31:54 +0100 Subject: [PATCH] [#21803] Cannot perform transactions/create derived account via keycard using NON default keypairs which existed before keycard migration (#21808) --- .../common/standard_authentication/events.cljs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/status_im/common/standard_authentication/events.cljs b/src/status_im/common/standard_authentication/events.cljs index 3c3d0117ed..88b5ecf55a 100644 --- a/src/status_im/common/standard_authentication/events.cljs +++ b/src/status_im/common/standard_authentication/events.cljs @@ -11,14 +11,13 @@ [utils.security.core :as security])) (defn- handle-password-success - [has-partially-operable-accounts? on-auth-success password] - (let [sha3-pwd (security/hash-masked-password password) - on-auth-success-callback #(on-auth-success sha3-pwd)] + [has-partially-operable-accounts? on-auth-success masked-password] + (let [on-auth-success-callback #(on-auth-success masked-password)] (rf/dispatch [:standard-auth/set-success true]) (rf/dispatch [:standard-auth/reset-login-password]) (if has-partially-operable-accounts? (rf/dispatch [:wallet/make-partially-operable-accounts-fully-operable - {:password sha3-pwd + {:password masked-password :on-success on-auth-success-callback :on-error on-auth-success-callback}]) (on-auth-success-callback)))) @@ -45,7 +44,7 @@ (rf/dispatch [:keycard/disconnect]) (handle-password-success false on-auth-success - encryption-public-key)) + (security/mask-data encryption-public-key))) :on-failure #(rf/dispatch [:keycard/on-action-with-pin-error %])}]))}]))}]] [:effects.biometric/check-if-available @@ -114,7 +113,7 @@ {:on-enter-password #(handle-password-success has-partially-operable-accounts? on-auth-success - %) + (security/hash-masked-password %)) :on-press-biometrics on-press-biometric :button-icon-left auth-button-icon-left :button-label auth-button-label}])))