mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Do not ask for Pin on Trezor T
This commit is contained in:
parent
9f04c7d0bc
commit
d2357ee8b9
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue