[Form] Fixed CSRF protection
This commit is contained in:
parent
5705f74bd0
commit
ea49621034
@ -634,8 +634,10 @@ class Form extends Field implements \IteratorAggregate, FormInterface, FilterInt
|
||||
|
||||
$token = $provider->generateCsrfToken(get_class($this));
|
||||
|
||||
// FIXME
|
||||
// $this->add(new HiddenField($fieldName, array('data' => $token)));
|
||||
$this->add('hidden', $fieldName, array(
|
||||
'data' => $token,
|
||||
'property_path' => null,
|
||||
));
|
||||
}
|
||||
|
||||
public function disableCsrfProtection()
|
||||
|
Reference in New Issue
Block a user