Active
Project:
CAPTCHA
Version:
2.0.10
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2026 at 16:42 UTC
Updated:
16 Jun 2026 at 03:42 UTC
Jump to comment: Most recent
When using gin_login, the captcha is not placed correctly on the password reset form (it is placed below the submit button).
Not sure if that's a problem with captcha or with gin_login.
Comments
Comment #2
dkmishra commentedCAPTCHA is rendering correctly. The issue is form element ordering.
The CAPTCHA module inserts the CAPTCHA before the form actions. After that, `gin_login_form_alter()` changes the login form layout and sets the actions wrapper weight to `98`, which moves the submit button above the CAPTCHA.
In `gin_login.module`:
So this looks like a Gin Login/CAPTCHA integration ordering issue, not a CAPTCHA rendering issue.
A safe project-level fix is to add a small custom form alter hook and explicitly keep CAPTCHA before the submit button:
After adding this, clear Drupal cache.