Hello -
This is kind of a minor issue that continues to bug me...
First of all, the Captcha display is just plain ugly. I would love to replace it entirely. Unfortunately, the only replacement option I can find is ReCaptcha - which is somehow uglier. If anyone has an alternative, I would love to hear about it.
Second, Captcha likes to commonly display a very odd looking pointed zero. But how is anyone to know it is not an "O" letter? Yes, you want the Captcha to be difficult enough for machines to have trouble with... but you certainly don't want humans to be baffled and enter the wrong code. When possible, I prefer to remove 0, O, 1, and l from the list of characters that the captcha displays. Is there anyway to do that with the OC Captcha?
Thank you.
This is kind of a minor issue that continues to bug me...
First of all, the Captcha display is just plain ugly. I would love to replace it entirely. Unfortunately, the only replacement option I can find is ReCaptcha - which is somehow uglier. If anyone has an alternative, I would love to hear about it.
Second, Captcha likes to commonly display a very odd looking pointed zero. But how is anyone to know it is not an "O" letter? Yes, you want the Captcha to be difficult enough for machines to have trouble with... but you certainly don't want humans to be baffled and enter the wrong code. When possible, I prefer to remove 0, O, 1, and l from the list of characters that the captcha displays. Is there anyway to do that with the OC Captcha?
Thank you.
Open /system/library/captcha.php
Find
replace with
Untested but should work
Find
Code: Select all
$this->code = substr(sha1(mt_rand()), 17, 6);
Code: Select all
$this->code = substr(preg_replace('~[0o]+~i', '',sha1(mt_rand())), 17, 6);
Second that Jay! But I'm still seeing the number 1. (1.5.2.1)
STONEHINGED
Handcrafted, Semi-Precious Jewelry
http://www.stonehinged.com/
Jay can confirm this, I'm just experimenting but I think the following edit:
will also remove "1, i, l" if desired.
Code: Select all
$this->code = substr(preg_replace('~[0o1il]+~i', '',sha1(mt_rand())), 17, 6);
STONEHINGED
Handcrafted, Semi-Precious Jewelry
http://www.stonehinged.com/
Who is online
Users browsing this forum: No registered users and 17 guests