1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00

fix getpass usage

This commit is contained in:
Pavol Rusnak 2014-11-23 13:28:09 +01:00
parent 6a27ce2d5c
commit a939d3de1d

View File

@ -182,7 +182,7 @@ class TextUIMixin(object):
log("Passphrase required: ")
passphrase = getpass.getpass('')
log("Confirm your Passphrase: ")
if passphrase == getpass(''):
if passphrase == getpass.getpass(''):
passphrase = unicode(str(bytearray(passphrase, 'utf-8')), 'utf-8')
return proto.PassphraseAck(passphrase=passphrase)
else: