throw on non-u2f specific errors

This commit is contained in:
Kukks
2020-01-14 09:48:06 +01:00
parent 9ccb472c7a
commit dad3039c06
3 changed files with 6 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ using BTCPayServer.U2F.Models;
using Newtonsoft.Json;
using NicolasDorier.RateLimits;
using BTCPayServer.Data;
using U2F.Core.Exceptions;
namespace BTCPayServer.Controllers
{
@@ -235,9 +236,8 @@ namespace BTCPayServer.Controllers
errorMessage = "Invalid login attempt.";
}
catch (Exception e)
catch (U2fException e)
{
errorMessage = e.Message;
}