mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
ci: Fix occasionally failing MFA e2e test (no-changelog) (#7040)
This commit is contained in:
parent
e1922f7383
commit
9d70ce3a15
|
@ -20,7 +20,7 @@ export class TOTPService {
|
||||||
}).toString();
|
}).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
verifySecret({ secret, token, window = 1 }: { secret: string; token: string; window?: number }) {
|
verifySecret({ secret, token, window = 2 }: { secret: string; token: string; window?: number }) {
|
||||||
return new OTPAuth.TOTP({
|
return new OTPAuth.TOTP({
|
||||||
secret: OTPAuth.Secret.fromBase32(secret),
|
secret: OTPAuth.Secret.fromBase32(secret),
|
||||||
}).validate({ token, window }) === null
|
}).validate({ token, window }) === null
|
||||||
|
|
|
@ -175,8 +175,6 @@ export class E2EController {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('users', users);
|
|
||||||
|
|
||||||
await this.userRepo.insert(users);
|
await this.userRepo.insert(users);
|
||||||
|
|
||||||
await this.settingsRepo.update(
|
await this.settingsRepo.update(
|
||||||
|
|
Loading…
Reference in a new issue