Fix prompt for symmetric encryption passphrase

This commit is contained in:
Roman Zeyde
2019-03-03 22:51:15 +02:00
parent 94ad9648f8
commit e437591dd5
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class UI:
binary=self.pin_entry_binary,
options=self.options_getter())
def get_passphrase(self):
def get_passphrase(self, prompt='Passphrase:'):
"""Ask the user for passphrase."""
passphrase = None
if self.cached_passphrase_ack:
@@ -48,7 +48,7 @@ class UI:
if passphrase is None:
passphrase = interact(
title='{} passphrase'.format(self.device_name),
prompt='Passphrase:',
prompt=prompt,
description=None,
binary=self.passphrase_entry_binary,
options=self.options_getter())