I had a problem with captcha_comment throwing an error in the validate switch even when it was configured not to require captcha from registered users. It (correctly) doesn't show a captcha image when configured this way, but it still performs the validation check, which leaves the user trapped.

I added the following code to captcha_comment write after case 'validate':

if(variable_get('captcha_comment_registered','true')=='false') {
     return;
}

Comments

Alice Heaton’s picture

Title: captcha_comment() not checking for captcha_comment_registered flag in validate » Similar problem

I have a similar problem : I use captcha for registration, not for comments. However, I cannot add comments and get the following error message :

The captcha verification code you entered is not correct.

Even though there are no captchas to fill in.

The good news is that the patch from drumdance fixed my problem as well (thanks !). I am not sure what the conditions are for a bug to be "critical" - so I will leave it for now - but I think this bug should be high priority : as it is, captcha cannot be used without enabling it for all types of comments.

heine’s picture

Title: Similar problem » captcha_comment() not checking for captcha_comment_registered flag in validate

be careful; changing the title changes the title of the issue.

wundo’s picture

Status: Active » Closed (fixed)