1
0
鏡像自 https://github.com/trezor/trezor-firmware.git synced 2025-07-04 13:52:35 +00:00

python: fix debuglink usage of get_passphrase

This commit is contained in:
matejcik 2020-01-29 15:46:23 +01:00 提交者 Pavol Rusnak
父節點 1f50a13edf
當前提交 ee07b32f52
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 91F3B339B9A02A3D
共有 2 個檔案被更改,包括 1 行新增3 行删除

查看文件

@ -226,7 +226,7 @@ class DebugUI:
else:
return self.debuglink.read_pin_encoded()
def get_passphrase(self):
def get_passphrase(self, available_on_device):
return self.passphrase

查看文件

@ -129,8 +129,6 @@ def client(request):
needs_backup=setup_params["needs_backup"],
no_backup=setup_params["no_backup"],
)
if setup_params["passphrase"]:
client.passphrase_on_host = True
if setup_params["pin"]:
# ClearSession locks the device. We only do that if the PIN is set.