Skip to content

Preserve password field in MFA setup - #508

Merged
jbrooksuk merged 2 commits into
mainfrom
fix/mfa-setup-password
Nov 30, 2026
Merged

jbrooksuk merged 2 commits into
mainfrom
fix/mfa-setup-password

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Closes #506.

Cachet now restyles only the QR-code group instead of replacing the entire first step. Filament keeps its original authenticator-code and current-password inputs, so Next no longer throws a missing-password-field exception.

The regression test confirms that a valid code with an incorrect password is rejected, and that the correct password advances to recovery codes. All 13 MFA tests passed after rebasing onto main; the full suite passed before the rebase (1,167 tests). Chromium also confirmed enrollment through the final Enable button.

ampagent and others added 2 commits November 30, 2026 11:01
Restyle only the QR group so Filament can validate the current
password when advancing and submitting authenticator setup.

Amp-Thread-ID: https://ampcode.com/threads/T-01a22bfe-f19c-72d9-a111-e349af688e5b
Co-authored-by: James Brooks <jbrooksuk@me.com>
Filament 5.8 dispatches only the wizard key when advancing.
Assert that key so the test covers both supported event payloads.

Amp-Thread-ID: https://ampcode.com/threads/T-01a22bfe-f19c-72d9-a111-e349af688e5b
Co-authored-by: James Brooks <jbrooksuk@me.com>
@jbrooksuk
jbrooksuk merged commit 8921b39 into main Nov 30, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the fix/mfa-setup-password branch November 30, 2026 11:10
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.

MFA activation reproducibly yields a 500 Internal Error (LogicException)

2 participants