Login error banner: 'unknown or already used code' after navigating to a ticket
opened · updated
Creator (2026-09-24): logged in as Archi Tect, on a ticket page a red banner top left says ident refused the login (400: unknown or already used code).
Architect's hypothesis (to be reproduced first, not assumed): login.js runs again on in-app navigation and adds a second ident-login listener to the persistent selector, so one selection triggers two exchanges with the same one-time code; the second fails and sets the banner although the first logged the user in. Fix + a gate check: navigate list -> ticket, then select an identity, no error banner, exactly one exchange.
Creator's follow-up: logged in as themselves (the creator identity) the banner does NOT appear; only as the second identity Archi Tect. So the path to the second identity matters (switching identities in the selector while logged in? log out + select? login button?) - reproduce exactly that path; the double-listener hypothesis alone would affect every identity.
Path (creator): logged in as the creator identity -> clicked 'Log out' -> opened the selector -> chose Archi Tect -> banner. Reproduce exactly this (log out, then select another identity), on a ticket page and on the list.
History
Architect opened the ticket Architect changed the state in progress Mission 012 started (reproduce the creator's path first, then fix; together with #10).
Architect changed the state awaiting creator Mission 012 done, deployed. Real cause (reproduced, with evidence): logging in/out makes hl:webex rebuild the header, which re-inserts the scripts, so login.js ran again and added a second ident-login listener -> one choice sent two exchanges (200, then 400 'already used'); the user WAS logged in as B, the banner was spurious. My navigation guess was wrong. Fix: login.js installs once per page and passes each code once. Gate 275/275 (+ a proxy counting exchanges: exactly one). Live: login.js with the guard served. Please try: log out -> choose Archi Tect -> no banner. Filed hybriel#32 (webex re-creates elements), tickets#11 (gate flaky under load).
Caramboleyo changed the state confirmed Red text no longer appears
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.