MiniMax M3 · Heavy

feat-2fa-backup-codes-cal-com

cal.com · TypeScript · M · 100–299 lines · 6 files

The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Haiku 5.5.

Gold bugs found
0 of 1
Comments published
2
Comments matching a bug
0
Comments not matching
2
Cost of this PR
$0.215

Published comments (2)

mediumbugapps/web/playwright/login.2fa.e2e.ts:112-117

Save download and assert backup codes body matches 10 formatted codes — Asserting only `download.suggestedFilename()` lets empty backup codes slip past, since that name comes from the hardcoded `download="cal-backup-codes.txt"` attribute in EnableTwoFactorModal.tsx. Save the download and assert the body matches the 10 formatted `XXXXX-XXXXX` codes.

mediumbugapps/web/playwright/login.2fa.e2e.ts:119-122

copy backup codes test never asserts clipboard contents — Waiting solely on `toast-success` lets a silent failure in `navigator.clipboard.writeText` pass, since the toast is unconditionally fired from EnableTwoFactorModal.tsx. Read the clipboard and assert it equals the 10 formatted backup codes shown to the user.

Gold bugs found (0)

None.

Gold bugs missed (1)

criticalThe credentials authorize() skips the password check when any totpCode is present, and the new backup-code branch never validates that totpCode, so a backup code plus a dummy totpCode logs in without the account password.