CaptchaBundle
CaptchaBundle copied to clipboard
Always "bad code" on overriden fosuserbundle registration and others template
I followed your tutorial on http://www.gregwar.com/old/?tag=captcha but its a bit dated and the form override declaration changed since. Your bundle shows as expected in my template but the security code is never valid. Working perfectly in my contact us form. Is the bundle still functional with fos?
using symfony 2.5 with fosuserbundle dev-master all form and template were override according to official doc and working flawlessly
Hello, Recently did a full test (see https://github.com/Gregwar/FOS-Captcha) And it works for me
Thanks for feedback, it does work in your example were the register template is not overridden and with no theming using only {{ form_widget(form) }}, i will investigate further to see what is wrong with a custom template and theming
I'd like to confirm that the code is always incorrect. I'll run it through the debugger and attempt to find out what is going wrong.
Update: The problem has nothing to do with this bundle :) It's actually the "Empty string URL bug" as described here http://www.nczonline.net/blog/2010/03/16/empty-string-urls-in-html-a-followup/ What's happening under the hood is that the browser loads the page, the bundle creates the captcha and stores the key in the session. The browser then detects an empty URL and loads the page again. The bundles code is run again, the session is updated BUT the browser does not refresh the page with the new image.