ow
This commit is contained in:
1 parent
e3cbe60d43
commit
6afc97c8f5
1 file changed
+1
-1
@@ -166,7 +166,7 @@ namespace CloudBuilder.Security.Service
|
|||||||
|
|
||||||
uint newCounter = result.SignCount;
|
uint newCounter = result.SignCount;
|
||||||
|
|
||||||
if (newCounter <= storedCounter)
|
if (newCounter < storedCounter)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(
|
throw new InvalidOperationException(
|
||||||
$"WebAuthn counter regression: stored={storedCounter}, new={newCounter}");
|
$"WebAuthn counter regression: stored={storedCounter}, new={newCounter}");
|
||||||
|
|||||||
Reference in new issue
Block a user