No Captcha on initial submission of user registration form

max6166 - September 10, 2008 - 03:32
Project:CAPTCHA
Version:5.x-3.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have Captcha and reCaptcha working elsewhere on my site and decided to add a captcha to the new user registration form as well.

On the initial page, no Captcha is displayed, but upon submission of the form, the Captcha is correctly displayed along with the messages "The reCAPTCHA code you entered was incorrect" and "Invalid CAPTCHA token".

I don't know if it is relevant, but I am also using the Profile module. Captchas are enabled for "user_register", but I noticed that the id of the form is actually "user-register". I tried to enable "user-register" with the direct url trick but it didn't make a difference.

Math Captchas and other types exhibit the same behaviour.

#1

soxofaan - September 10, 2008 - 12:09
Category:bug report» support request

I guess the CAPTCHA-less user registration form is just an old cached page.
Clear your page cache (or disable caching temporarily) and check if the issue persists.

The Drupal form ID is really "user_register",
the underscore is replaced with a hyphen for CSS classes in HTML markup and such, that's why you see "user-register" in the markup

#2

max6166 - September 10, 2008 - 22:05
Status:active» closed

Yep, clearing the cache fixed it. Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.