Skip to content

Fix the 2FA Log in button that did nothing on click - #299

Merged
PhilReinking merged 1 commit into
mainfrom
fix/bits-388-2fa-confirm-button
Oct 22, 2026
Merged

PhilReinking merged 1 commit into
mainfrom
fix/bits-388-2fa-confirm-button

Conversation

@PhilReinking

Copy link
Copy Markdown
Contributor

Clicking "Log in" on the two-factor screen now sends the code. Before, only Enter worked: the button had no type, and the UI Button defaults to type="button". Fix: type="submit".

Other Auth pages already submit on click (ConfirmPassword's Jetstream button defaults to submit).

Tested: new tests click the button with a code and a recovery code, and fail without the fix; lint is clean.

Not tested: a real 2FA login in a browser.

Fixes BITS-388

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@PhilReinking PhilReinking left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK at 8ba0195 (CI: the PM checks it). @deck9/ui 0.17.0 (lockfile) renders its button with type: "button" (dist/src/ui.mjs:97). type is not a prop, so the passed type="submit" wins, as on Login, Register, ForgotPassword, ResetPassword and VerifyEmail. ConfirmPassword uses JetButton, whose type defaults to "submit". The changelog line is under [Unreleased] → Fixed.

@PhilReinking
PhilReinking merged commit b2faf5e into main Oct 22, 2026
6 checks passed
@PhilReinking
PhilReinking deleted the fix/bits-388-2fa-confirm-button branch October 22, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant