Browse Source

Strip whitespace from beginning and end of mnemonic on wallet recovery

master
Kristaps Kaupe 5 years ago
parent
commit
29b274ee72
No known key found for this signature in database
GPG Key ID: D47B1B4232B55437
  1. 1
      jmclient/jmclient/wallet_utils.py

1
jmclient/jmclient/wallet_utils.py

@ -618,6 +618,7 @@ def wallet_generate_recover_bip39(method, walletspath, default_wallet_name,
return False
elif method == 'recover':
words, mnemonic_extension = enter_seed_callback()
words = words.strip()
mnemonic_extension = mnemonic_extension and mnemonic_extension.strip()
if not words:
return False

Loading…
Cancel
Save