[Form] Removed unused Form::isCsrfTokenValid()
This commit is contained in:
parent
3e17b26105
commit
d2210a2e79
@ -308,22 +308,6 @@ class Form extends Field implements \IteratorAggregate, FormInterface
|
|||||||
return count($this->fields);
|
return count($this->fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether the CSRF token is valid
|
|
||||||
*
|
|
||||||
* @return Boolean
|
|
||||||
*/
|
|
||||||
public function isCsrfTokenValid()
|
|
||||||
{
|
|
||||||
if (!$this->isCsrfProtected()) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
$token = $this->get($this->csrfFieldName)->getClientData();
|
|
||||||
|
|
||||||
return $this->csrfProvider->isCsrfTokenValid(get_class($this), $token);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binds a request to the form
|
* Binds a request to the form
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user