Fake captcha bug fixed.
This commit is contained in:
parent
ab8c53da07
commit
ee887d8528
|
@ -3,6 +3,7 @@
|
||||||
namespace Skobkin\Bundle\CopyPasteBundle\Form;
|
namespace Skobkin\Bundle\CopyPasteBundle\Form;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
|
@ -22,6 +23,16 @@ class FakeCaptchaType extends AbstractType
|
||||||
|
|
||||||
public function getParent()
|
public function getParent()
|
||||||
{
|
{
|
||||||
return 'hidden';
|
return HiddenType::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function getBlockPrefix()
|
||||||
|
{
|
||||||
|
return 'copypaste_fake_captcha';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% block skobkin_fake_captcha_widget %}
|
{% block copypaste_fake_captcha_widget %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<div id="{{ form.vars.id }}"></div>
|
<div id="{{ form.vars.id }}"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in a new issue