Properly clean up Capcha event listeners on step transition

Fixkamo-login
Shipped
April 19, 2026 at 4:28 PM UTC
Author
Kamo
Commit
f8635a7

The removeEventListener calls were inside the setTimeout callback's return value, which JavaScript ignores. This caused handlers to accumulate on every user→pass step transition, making performLogin fire multiple times when Capcha verified. Fixed by tracking the cleanup function in a variable outside the setTimeout, the same pattern used in PostCompletionScreen.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing