Repository navigation
Preserve password field in MFA setup - #508
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.