Skip to content

Feature/ajax login htmx - #1182

Draft
ajibarra wants to merge 3 commits into
16.next-cake5from
feature/ajax-login-htmx
Draft

Feature/ajax login htmx#1182
ajibarra wants to merge 3 commits into
16.next-cake5from
feature/ajax-login-htmx

Conversation

@ajibarra

Copy link
Copy Markdown
Member

No description provided.

@ajibarra
ajibarra marked this pull request as draft June 29, 2026 10:24
@ajibarra
ajibarra force-pushed the feature/ajax-login-htmx branch from 0cfc55c to 460443b Compare July 1, 2026 07:22
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.
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