mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-09-17 01:35:01 +00:00
The server-rendered registration form is replaced by a React-based component which talks to the GraphQL API to validate the username as it is typed, renders the CAPTCHA in-page, and gives live password complexity feedback. Server-side validation errors are threaded into the form through the mount node, so a rejected submission re-renders with the same messages the old template showed. Registering now requires JavaScript: the <noscript> block shows a notice and a sign-in link instead of a duplicate form, which could not work anyway when a CAPTCHA is configured. While the script loads, the page shows a skeleton of the form to avoid layout shifts, and a hidden error notice is revealed if it fails to boot.