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

@@ -3,6 +3,7 @@ using System.Threading.Tasks;
using BTCPayServer.Models;
using BTCPayServer.U2F.Models;
using Microsoft.AspNetCore.Mvc;
using U2F.Core.Exceptions;
namespace BTCPayServer.Controllers
{
@@ -65,7 +66,7 @@ namespace BTCPayServer.Controllers
return RedirectToAction("U2FAuthentication");
}
}
catch (Exception e)
catch (U2fException e)
{
errorMessage = e.Message;
}