1
0

trezor: single passphrase entry

Only require the user to input the passphrase once, unless creating
a wallet.
Should they mis-enter the passphrase, they will be warned Electrum
couldn't pair the device, and when they actually need to use it
they will be prompted again.
Fixes #1672
This commit is contained in:
Neil Booth
2016-02-11 19:51:56 +09:00
parent 2bbe829f32
commit 535956149a
6 changed files with 45 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ from electrum.util import print_msg
class KeepKeyCmdLineHandler:
def get_passphrase(self, msg):
def get_passphrase(self, msg, confirm):
import getpass
print_msg(msg)
return getpass.getpass('')