mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -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();
|
||||
}
|
||||
|
||||
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({
|
||||
secret: OTPAuth.Secret.fromBase32(secret),
|
||||
}).validate({ token, window }) === null
|
||||
|
|
|
@ -175,8 +175,6 @@ export class E2EController {
|
|||
);
|
||||
}
|
||||
|
||||
console.log('users', users);
|
||||
|
||||
await this.userRepo.insert(users);
|
||||
|
||||
await this.settingsRepo.update(
|
||||
|
|
Loading…
Reference in a new issue