genemu/GenemuFormBundle

Multiple captchas in the same page

Opened this issue · 1 comments

If I put two captchas in the same page, the second captcha has thesame code and seems to be the same image twice. If there any way to use multiple captchas in the same page?

Currently it's impossible, captcha code is registered in sessions under a static key, so if you have multiple captchas on a page it will grab the same code (cf. https://github.com/genemu/GenemuFormBundle/blob/master/Gd/Type/Captcha.php#L60).

It should be possible to implement though, maybe if captcha session key is prefixed with the field unique name.