Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2007 at 08:58 UTC
Updated:
28 Aug 2007 at 14:49 UTC
Would it be possible to allow API modules to decide if they want to be case sensitive or not.
My addon Riddler would benefit from that, mostly because it's either to implement this in Captcha or bypass the Captcha module all together. That would be a waste however.
Comments
Comment #1
soxofaan commentedThere is an option to preprocess the given answer before validation. This not documented in the API however. Look for 'preprocess' (around line 331 and 384) in captcha.module. You should (in a nutshell):
hook_captcha($op, $captcha_type='', $answer='')Comment #2
imerlin commentedAdded in the latest release, thanks.
Comment #3
soxofaan commentedin an effort to make the captcha API better, a minor thing changed to the preprocess API.
When the patch from http://drupal.org/node/158613#comment-288696 will be committed, the second step of #1 (http://drupal.org/node/160769#comment-277301) changes to:
The preprocess is documented in the patch of http://drupal.org/node/158613#comment-288696 .
I changed it because 'process' seems to suggest to do the validation, while 'preprocess' is more intuitive.
Comment #4
(not verified) commented