CaptchaBundle
CaptchaBundle copied to clipboard
Invalid code when using IE
Hello,
I am using this bundle and i have the issue summarized in the title. There is only one cacptcha in the page, it works in other browsers, but in IE, no matter what version, it returns invalid code. Does anyone have any idea what can cause this? Thank you! Here is the code i use
$builder->add('captcha', 'captcha', array(
'length' => 4,
'height' => 35,
'charset' => 0123456789,
'distortion' => false,
'background_color' => [255, 255, 255],
'invalid_message' => 'Codice non corretto, inserire nuovamente',
'label' => 'Enter the code you see in the picture',
'as_url' => true,
'reload' => true,
'attr' => array(
'class' => 'form-control captcha'
)
)
);
Hello, First thing, you should put quotes around the charset, I'm not sure what will happen if it's a number What is your version of IE? Do you accept the session cookie on your IE config? Does it works without all your options (if you try commenting out the custom charset length and so)?
Hi,
I am using Symfony 2.4, I used IE 9,10 and 11 without success. I tried your suggestions, but they didn't work. I changed the settings of the browser to always accept session cookies, but still no luck.
Thanks for your time!
Ok, what version of this bundle do you use? Can you store session values w/ your version of symfony and IE? (If you make a simple test) We have to figure out what is the difference between your IEs and your other browsers
Do you also have the problem when as url is false?
Did you try simply:
$builder->add('captcha', 'captcha');
Just to check?