Skip to content
Snippets Groups Projects
Unverified Commit 391500bd authored by DW's avatar DW Committed by GitHub
Browse files

Allow wider window for totp verification (#5811)

As server time and client time may not necessarily match
parent 5b63c23a
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,8 @@ export default async (ctx: Koa.Context) => {
const verified = (speakeasy as any).totp.verify({
secret: profile.twoFactorSecret,
encoding: 'base32',
token: token
token: token,
window: 2
});
if (verified) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment