1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

updated otp library. reduced verification window to RFC standard of 1

This commit is contained in:
Kyle Spearrin 2017-01-28 22:11:54 -05:00
parent 8514d1f16d
commit a02b5fcd14
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace Bit.Core.Identity
var otp = new Totp(Base32Encoding.ToBytes(user.AuthenticatorKey));
long timeStepMatched;
var valid = otp.VerifyTotp(token, out timeStepMatched, new VerificationWindow(2, 2));
var valid = otp.VerifyTotp(token, out timeStepMatched, new VerificationWindow(1, 1));
return Task.FromResult(valid);
}

View File

@ -8,7 +8,7 @@
"Sendgrid": "6.3.4",
"PushSharp": "4.0.10",
"WindowsAzure.Storage": "8.0.0",
"Otp.NET": "1.0.0"
"Otp.NET": "1.0.1"
},
"frameworks": {