Hi

I have problem in captcha while i use it in webform,
see my steps
i have 2 fileds in webform a) First name b) Email both are required

if i give catcha value right at first time and i dont fill above both fields then my form gives me error for the above required fields, and captch disappears bcoz i have added right value in captcha.. (if i pass wrong value then it comes again),

My problem is i want captcha in every attept of form,

While it is perfactly working on my default contact form,

In captcha settings i have also selected "Always add a challenge." in Persistence,

Please Guide me what i am missing!

Comments

soxofaan’s picture

Category: bug » support

This is a feature actually: once a CAPTCHA is solved correctly for a form instance (aka form session), it is omitted for the rest of the lifetime of that form. This was implemented for workflows with previews or multi-page forms, where one typically wants that the CAPTCHA is removed once the user successfully answered to it.

The admin option "Always add a challenge." is maybe a bit misleading here, and should better be something like "Add a challenge to each form instance, until correctly solved for that instance."

Maybe this could be turned into a feature request to support a real "Always add a challenge" feature. However, I'm not sure if that's a very good idea: it will mainly hurt human visitors, but barely harm spambots, because they probably don't retry posting a form with a validation error and just rerequest a new fresh form instance.

Turkish Delight’s picture

Bumping because I believe that this should be changed to constantly add a challenge for that form if the actual form hasn't been answered correctly. This could apply to a user-login form, a password request form or a contact form.

soxofaan’s picture

Title: Captcha coming only on First Attempt in Webform, Even Persistance is "Always add challange" » CAPTCHA dissapears after correct anwer, even with persistance "Always add challange"
Version: 6.x-2.1 » 6.x-2.x-dev
Component: Miscellaneous » Captcha API (captcha)
Category: support » feature
soxofaan’s picture

Issue tags: +low-hanging fruit

(tagging)

soxofaan’s picture

Status: Active » Needs review
StatusFileSize
new12.8 KB
new44.37 KB

here is a first patch that implements this feature:

"always add a challenge" now really means what it suggests: a challenge will always be added, even on multipage/preview workflows.

Added the option "Add a challenge to every fresh form, but for multipage workflows only one challenge is required.", which is the old interpretation of "always add a challenge".

I'm not really happy with the wording yet. I'm afraid the four persistence options we have now take too much text and still are too hard too understand. I warmly welcome any suggestion or ideas from you guys and gals.

any other feedback is welcome too.

Status: Needs review » Needs work

The last submitted patch, 773124_persistence_really_always_01.patch, failed testing.

soxofaan’s picture

Status: Needs work » Needs review
StatusFileSize
new13.01 KB

this one should do it

soxofaan’s picture

StatusFileSize
new17.23 KB

Various tweaks and fixes.

All tests pass on my setup, but letting testbot give it a try too

soxofaan’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

test bot is happy, so committed: http://drupal.org/cvs?commit=378936

to be ported to D7 version

soxofaan’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

petiar’s picture

Title: CAPTCHA dissapears after correct anwer, even with persistance "Always add challange" » CAPTCHA dissapears after some time, even with persistance "Always add challange"
Version: 7.x-1.x-dev » 7.x-1.0-beta2
Component: Captcha API (captcha) » Code
Category: feature » bug
Priority: Normal » Major
Status: Closed (fixed) » Active

Hi there,

need to open this as I am having trubles on guestbook page - with "Always add a challenge." The CAPTCHA keeps disappearing every day and my customer is getting tons of spam. Can you please help me with this? Wich cache turned off it disappeared after couple of hours, cache enabled keeps the CAPTCHA working at least one day. My customer thinks I am not even able to set up a stupid guestbook.

Thanks a lot.

soxofaan’s picture

Title: CAPTCHA dissapears after some time, even with persistance "Always add challange" » CAPTCHA dissapears after correct anwer, even with persistance "Always add challange"
Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Component: Code » Captcha API (captcha)
Category: bug » feature
Priority: Major » Normal
Status: Active » Closed (fixed)