mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 07:34:26 +01:00
Do not ask for Pin on Trezor T
This commit is contained in:
@@ -79,7 +79,10 @@ namespace BTCPayServer.Controllers
|
|||||||
await websocketHelper.Send("{ \"error\": \"need-initialized\"}", cancellationToken);
|
await websocketHelper.Send("{ \"error\": \"need-initialized\"}", cancellationToken);
|
||||||
return true;
|
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);
|
await websocketHelper.Send("{ \"error\": \"need-pin\"}", cancellationToken);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user