1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +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: ") log("Passphrase required: ")
passphrase = getpass.getpass('') passphrase = getpass.getpass('')
log("Confirm your Passphrase: ") log("Confirm your Passphrase: ")
if passphrase == getpass(''): if passphrase == getpass.getpass(''):
passphrase = unicode(str(bytearray(passphrase, 'utf-8')), 'utf-8') passphrase = unicode(str(bytearray(passphrase, 'utf-8')), 'utf-8')
return proto.PassphraseAck(passphrase=passphrase) return proto.PassphraseAck(passphrase=passphrase)
else: else: