bug #3877 - no longer possible to sign messages with empty password

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Goran Jovic 2018-05-02 15:13:36 +02:00 committed by Eric Dvorsak
parent f8e535f9bc
commit ca80926433
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
2 changed files with 5 additions and 2 deletions

View File

@ -91,7 +91,8 @@
:signing? false :signing? false
:wrong-password? false :wrong-password? false
:waiting-signal? false :waiting-signal? false
:from-chat? false}) :from-chat? false
:password nil})
(defn on-transactions-completed [raw-results] (defn on-transactions-completed [raw-results]
(let [results (:results (types/json->clj raw-results))] (let [results (:results (types/json->clj raw-results))]
@ -290,7 +291,8 @@
(fn [{:keys [db]} _] (fn [{:keys [db]} _]
{:db (update-in db [:wallet :send-transaction] assoc {:db (update-in db [:wallet :send-transaction] assoc
:signing? false :signing? false
:wrong-password? false)})) :wrong-password? false
:password nil)}))
(handlers/register-handler-fx (handlers/register-handler-fx
:wallet.send/set-password :wallet.send/set-password

View File

@ -71,6 +71,7 @@
(i18n/label :t/cancel)] (i18n/label :t/cancel)]
[button/button {:style (wallet.styles/button-container sign-enabled?) [button/button {:style (wallet.styles/button-container sign-enabled?)
:on-press sign-handler :on-press sign-handler
:disabled? (not sign-enabled?)
:accessibility-label :sign-transaction-button} :accessibility-label :sign-transaction-button}
(i18n/label (or sign-label :t/transactions-sign-transaction)) (i18n/label (or sign-label :t/transactions-sign-transaction))
[vector-icons/icon :icons/forward {:color :white}]]])) [vector-icons/icon :icons/forward {:color :white}]]]))