Properly error 401 if request is not signed correctly

This commit is contained in:
nicolas.dorier 2018-12-06 12:22:05 +09:00
parent e75a1a8b70
commit 65b4697229

View file

@ -148,6 +148,10 @@ namespace BTCPayServer.Security
storeId = bitToken.StoreId;
}
}
else
{
return (storeId, false);
}
}
catch (FormatException) { }
return (storeId, true);