Form : use Csrf (instead of csrf)
This commit is contained in:
@@ -382,7 +382,7 @@ class Form
|
||||
|
||||
if ($this->csrf === TRUE)
|
||||
{
|
||||
$csrf = new csrf ();
|
||||
$csrf = new Csrf ();
|
||||
$csrf->field = $this->formName."[".$this->csrfField."]";
|
||||
$res .= $csrf->displayFormCSRF ();
|
||||
$this->csrfToken = $csrf->getToken ();
|
||||
@@ -433,7 +433,7 @@ class Form
|
||||
public function checkToken ($tokenFromUser)
|
||||
// {{{
|
||||
{
|
||||
$csrf = new csrf ();
|
||||
$csrf = new Csrf ();
|
||||
$csrf->field = $this->csrfField;
|
||||
// The checkThenDeleteToken method check the token and except if there is a
|
||||
// problem. If there is no problem, it delete the token
|
||||
|
||||
Reference in New Issue
Block a user