rootful
3d838ef96a
Fix mCaptcha broken after Vite migration ( #37492 )
...
After the Webpack-to-Vite migration (#37002 ), mCaptcha stopped working
entirely on the registration page, throwing an error:
`TypeError: setting getter-only property "INPUT_NAME"`
This fix stops trying to mutate the read-only INPUT_NAME export. Instead
it probes for the Widget constructor at module.default (direct) or
module.default.default (CJS-wrapped), constructs the widget, and then
renames the hidden input element it creates to m-captcha-response which
is the field name Gitea's backend reads from the submitted form.
Generative AI was used to help with making this PR.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2026-05-02 17:21:56 +02:00
..
2026-04-24 16:02:37 +08:00
2026-04-24 16:02:37 +08:00
2026-05-02 17:21:56 +02:00
2026-04-24 16:02:37 +08:00
2026-03-01 09:11:25 +00:00
2026-03-29 10:24:30 +00:00
2026-03-29 10:24:30 +00:00
2026-03-21 15:39:47 -07:00
2025-07-14 15:20:17 -07:00
2026-04-24 16:02:37 +08:00
2026-04-26 16:37:03 +00:00
2026-04-26 16:37:03 +00:00
2026-02-08 14:39:09 +08:00
2026-01-24 11:30:47 +00:00
2026-01-24 11:30:47 +00:00
2025-12-03 02:13:16 +00:00
2026-04-24 16:02:37 +08:00
2026-03-29 10:24:30 +00:00
2025-12-03 02:13:16 +00:00
2025-01-16 04:26:17 +08:00
2026-04-20 07:22:05 +00:00
2025-07-01 21:44:05 +08:00
2025-04-15 22:35:22 +08:00
2026-04-20 07:22:05 +00:00
2026-03-29 10:24:30 +00:00
2026-04-24 16:02:37 +08:00
2026-02-27 16:39:26 +00:00
2026-02-22 22:56:33 +00:00
2026-04-15 17:26:26 +00:00
2025-12-03 02:13:16 +00:00
2025-09-11 01:50:17 +02:00
2026-03-23 07:49:25 +00:00
2026-03-29 10:24:30 +00:00
2026-04-23 13:58:31 +00:00
2026-04-23 23:33:41 +00:00
2026-04-24 16:02:37 +08:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-03-24 20:26:58 -07:00
2026-04-20 07:22:05 +00:00
2026-04-13 18:53:55 +00:00
2024-07-07 15:32:30 +00:00
2025-02-28 00:58:25 +00:00
2026-04-20 07:22:05 +00:00
2026-04-24 16:02:37 +08:00
2024-07-07 15:32:30 +00:00
2026-03-29 10:24:30 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2026-04-24 16:02:37 +08:00
2026-04-20 07:22:05 +00:00
2026-04-20 07:22:05 +00:00
2026-04-28 04:36:39 +00:00
2026-03-31 10:03:52 +08:00
2026-04-30 22:38:05 +08:00
2026-03-31 10:03:52 +08:00
2026-03-31 10:03:52 +08:00
2026-04-24 16:02:37 +08:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2026-04-24 16:02:37 +08:00
2025-12-17 02:01:19 +00:00
2026-04-24 16:02:37 +08:00
2026-03-23 07:49:25 +00:00
2026-03-30 16:17:16 +00:00
2026-04-20 07:22:05 +00:00
2026-03-31 21:50:45 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2025-12-03 02:13:16 +00:00
2026-03-27 11:49:11 +01:00
2025-12-03 02:13:16 +00:00
2026-04-20 22:32:45 +00:00
2026-04-20 07:22:05 +00:00
2026-04-01 12:50:57 +00:00
2025-12-03 02:13:16 +00:00