Skip to content

Commit ccbac1e

Browse files
committed
small api fix
1 parent 6f87535 commit ccbac1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eFormAPI/eFormAPI/Infrastructure/Identity/Providers/ApplicationOAuthProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwner
5656
}
5757
// check code
5858
var otp = new Totp(Base32Encoder.Decode(user.GoogleAuthenticatorSecretKey));
59-
var isCodeValid = otp.VerifyTotp(code, out long timeStepMatched, new VerificationWindow(1, 1));
59+
var isCodeValid = otp.VerifyTotp(code, out long timeStepMatched, new VerificationWindow(5, 5));
6060
if (!isCodeValid)
6161
{
6262
context.SetError("Invalid code", "Invalid code");

0 commit comments

Comments
 (0)