option for case insensitive validation of image CAPTCHA
soxofaan - September 30, 2007 - 11:38
| Project: | CAPTCHA |
| Version: | 6.x-1.x-dev |
| Component: | Image Captcha (image_captcha) |
| Category: | feature request |
| Priority: | normal |
| Assigned: | soxofaan |
| Status: | closed |
Description
In some situations it could be handy to make the validation of the image CAPTCHA case insensitive (e.g. when the used font has little differences between the upper and lower case characters or when it's too difficult to explain to your target audience what upper/lower case is)

#1
You can head over to admin/user/captcha/image_captcha and change the "Characters to use in the code" to have only uppercase, or lowercase letters. It might be a good idea, however, to add an option to make the validation case insensitive.
#2
I am adding a potential patch to apply case insensitivity to the current dev code base. Updates are in captcha.pages.inc and image_captcha.admin.inc Strongly suggest review! This is my first patch.
#3
Hi Dave,
Thanks for your patch. Some remarks:
variable_get('captcha_ignore_case_sensitivity', TRUE)andvariable_get('captcha_ignore_case_sensitivity', FALSE). There should be only one default for settings variable, and it should beFALSEin this case so that the feature is disabled by default.-r DRUPAL-5--3to your cvs checkout).I would pick the first option for now
Don't be discouraged by this list, most items are minor issues.
If this is your first Drupal patch, you already did very well.
Thanks again
#4
Great feedback soxofaan - thank-you very much! I'll review the fixes and get a new patch uploaded in a few days. I have other obligations that will keep me busy for a day or two, but should find some time to make another attempt soon.
One question - would you suggest that I create a separate feature request for the 6.X update, or revise this entry for 6.X? I think I'd like to stay on one version for now.
Thanks,
Dave
#5
no problem, there is no rush
typically a feature is implemented in one branch and after it's finished, it gets ported to the other maintained branches. No need for a separate issue, there is a "patch (to be ported)" status
#6
Here is my second attempt. Hopefully this one is pretty close for the HEAD code base. Once I get this one figured out, perhaps I'll go back to the current 6.X. I'm running this version on my site now - no badness so far.
#7
Getting closer.
Some remarks however ;)
in attachment you'll find an adapted version of your patch.
committed to head in http://drupal.org/cvs?commit=116700
#8
I have a variation on this patch working in 5.x, any chance of a backport if I post it?
#9
at#8: if you backported it, then there is a backport ;)
be welcome to post it
I'm not very active on Drupal5 anymore, but a small patch as this one wouldn't be a problem
#10
#11
http://drupal.org/cvs?commit=195408
#12
The backported fix seems to work for me, thanks!
#13
Automatically closed -- issue fixed for 2 weeks with no activity.