ci: Fix occasionally failing MFA e2e test (no-changelog) (#7040)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-08-29 15:39:10 +02:00
committed by GitHub
parent e1922f7383
commit 9d70ce3a15
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -175,8 +175,6 @@ export class E2EController {
);
}
console.log('users', users);
await this.userRepo.insert(users);
await this.settingsRepo.update(