Feature/ajax login htmx - #1182
Draft
ajibarra wants to merge 3 commits into
Draft
Conversation
ajibarra
marked this pull request as draft
June 29, 2026 10:24
ajibarra
force-pushed
the
feature/ajax-login-htmx
branch
from
July 1, 2026 07:22
0cfc55c to
460443b
Compare
Builds on the opt-in AJAX/HTMX support: - Progressively enhance the plugin's full-page forms (login, register, password flows, two-factor verify) with HTMX; the #ajax-login-container swap target is rendered on the full page only and omitted from the swapped-in fragment. - Wrap the authentication and two-factor middleware so the redirects they issue (e.g. a successful login into the verify action) also convert to JSON / HX-Redirect, and scope conversion to the configured Users controller. - Make reCaptcha work on the HTMX channel for v2 and v3 via a small glue script, gated on the ajax render context so forms outside it keep native reCaptcha. - Hardening: validate the reCaptcha version, cap the glue's readiness retries, forward the widget theme/size, and use the login-failure event constant. - Tests: correct and extend the component and middleware unit tests (fragment contract, controller scope). - Docs: AjaxAndHtmx.md covers full-page enhancement, two-factor, reCaptcha, the JSON mass-assignment warning and the modal caveats.
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.
No description provided.