Captcha view helper include separator twice #3023

Closed
fernandomantoan opened this Issue Nov 20, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@fernandomantoan
Contributor

fernandomantoan commented Nov 20, 2012

When using the Zend\Form\Element\Captcha and configuring a separator in the Zend\Form\View\Helper\Captcha\AbstractWord or any other view helper the separator defined is rendered two times, one after the captcha text and another one between the two input fields, something like:

Please type this word backwards
<b>awof767p</b>
<br>
<input type="hidden" value="6bf7f7965db0ef346af143b16e808871" name="captcha[id]">
<br>
<input type="text" name="captcha[input]">

I don't know if there is a case that this is needed, i think that the separator would be useful just to format the captcha output, as in my case that i wanted the text field to be just below the captcha text:

Please type this word backwards
<b>awof767p</b>
<input type="hidden" value="6bf7f7965db0ef346af143b16e808871" name="captcha[id]">
<br>
<input type="text" name="captcha[input]">

What do you think guys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment