Do not ask for Pin on Trezor T

This commit is contained in:
nicolas.dorier 2019-11-25 11:50:49 +09:00
parent 9f04c7d0bc
commit d2357ee8b9
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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;