Fixed a typo
This commit is contained in:
parent
7a233bc7a6
commit
bca68ca605
@ -65,7 +65,7 @@ class CsrfValidationListener implements EventSubscriberInterface
|
||||
|
||||
if ($form->isRoot() && $form->getConfig()->getOption('compound')) {
|
||||
if (!isset($data[$this->fieldName]) || !$this->csrfProvider->isCsrfTokenValid($this->intention, $data[$this->fieldName])) {
|
||||
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form'));
|
||||
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form.'));
|
||||
}
|
||||
|
||||
unset($data[$this->fieldName]);
|
||||
|
Reference in New Issue
Block a user