mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
ci: Fix occasionally failing MFA e2e test (no-changelog) (#7040)
This commit is contained in:
committed by
GitHub
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(
|
||||
|
||||
Reference in New Issue
Block a user