Procházet zdrojové kódy

Se agrego el csrf_protection = false para los test

Your Name před 7 roky
rodič
revize
adda325d22

+ 2 - 1
src/IPv4Bundle/Form/HostType.php

@@ -27,7 +27,8 @@ class HostType extends AbstractType
     public function configureOptions(OptionsResolver $resolver)
     {
         $resolver->setDefaults(array(
-            'data_class' => 'IPv4Bundle\Entity\Host'
+            'data_class' => 'IPv4Bundle\Entity\Host',
+            'csrf_protection' => false
         ));
     }
 

+ 2 - 1
src/IPv4Bundle/Form/HostTypeType.php

@@ -22,7 +22,8 @@ class HostTypeType extends AbstractType
     public function configureOptions(OptionsResolver $resolver)
     {
         $resolver->setDefaults(array(
-            'data_class' => 'IPv4Bundle\Entity\HostType'
+            'data_class' => 'IPv4Bundle\Entity\HostType',
+            'csrf_protection' => false
         ));
     }