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:
parent
6a27ce2d5c
commit
a939d3de1d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user