CaptchaBundle icon indicating copy to clipboard operation
CaptchaBundle copied to clipboard

Invalid code when using IE

Open ssdog opened this issue 8 years ago • 5 comments

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'
                )
            )
        );

ssdog avatar Jul 08 '16 14:07 ssdog

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)?

Gregwar avatar Jul 10 '16 23:07 Gregwar

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!

ssdog avatar Jul 11 '16 09:07 ssdog

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

Gregwar avatar Jul 12 '16 17:07 Gregwar

Do you also have the problem when as url is false?

Gregwar avatar Jul 12 '16 17:07 Gregwar

Did you try simply:

$builder->add('captcha', 'captcha');

Just to check?

Gregwar avatar Jul 12 '16 17:07 Gregwar