[FIX #1602] Trim whitespace from passphrase during account recovery
Currently account recovery includes whitespace on either side of the passphrase, preventing recovery of the desired account. We trim that whitespace in the account-recovery-fx
This commit is contained in:
parent
2585a32c7a
commit
52c8fc967d
|
@ -16,7 +16,10 @@
|
|||
(reg-fx
|
||||
::recover-account-fx
|
||||
(fn [[passphrase password]]
|
||||
(status/recover-account passphrase password #(dispatch [:account-recovered %]))))
|
||||
(status/recover-account
|
||||
(str/trim passphrase)
|
||||
password
|
||||
#(dispatch [:account-recovered %]))))
|
||||
|
||||
;;;; Handlers
|
||||
|
||||
|
@ -45,4 +48,3 @@
|
|||
:recover-account
|
||||
(fn [_ [_ passphrase password]]
|
||||
{::recover-account-fx [passphrase password]}))
|
||||
|
||||
|
|
Loading…
Reference in New Issue