diff --git a/packages/cli/src/Mfa/totp.service.ts b/packages/cli/src/Mfa/totp.service.ts index 941dcc91e3..ee85c3f100 100644 --- a/packages/cli/src/Mfa/totp.service.ts +++ b/packages/cli/src/Mfa/totp.service.ts @@ -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 diff --git a/packages/cli/src/controllers/e2e.controller.ts b/packages/cli/src/controllers/e2e.controller.ts index 57ec0316d4..0957ea95ee 100644 --- a/packages/cli/src/controllers/e2e.controller.ts +++ b/packages/cli/src/controllers/e2e.controller.ts @@ -175,8 +175,6 @@ export class E2EController { ); } - console.log('users', users); - await this.userRepo.insert(users); await this.settingsRepo.update(