From d2357ee8b962bf5a5a0ee2526a459b4d992a6518 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 25 Nov 2019 11:50:49 +0900 Subject: [PATCH] Do not ask for Pin on Trezor T --- BTCPayServer/Controllers/VaultController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/VaultController.cs b/BTCPayServer/Controllers/VaultController.cs index e96648b0c..e5ebf3793 100644 --- a/BTCPayServer/Controllers/VaultController.cs +++ b/BTCPayServer/Controllers/VaultController.cs @@ -79,7 +79,10 @@ namespace BTCPayServer.Controllers await websocketHelper.Send("{ \"error\": \"need-initialized\"}", cancellationToken); return true; } - if ((deviceEntry.Code is HwiErrorCode.DeviceNotReady || deviceEntry.NeedsPinSent is true) && pin is null) + if ((deviceEntry.Code is HwiErrorCode.DeviceNotReady || deviceEntry.NeedsPinSent is true) + && pin is null + // Trezor T always show the pin on screen + && (deviceEntry.Model != HardwareWalletModels.Trezor_T || deviceEntry.Model != HardwareWalletModels.Trezor_T_Simulator)) { await websocketHelper.Send("{ \"error\": \"need-pin\"}", cancellationToken); return true;