Form : CSRF createToken return now the token calculated
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1867 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
1
form.php
1
form.php
@@ -567,6 +567,7 @@ class csrf
|
|||||||
$this->csrfToken = $s;
|
$this->csrfToken = $s;
|
||||||
$_SESSION["domframework"]["form"]["csrf"] = $this->csrfToken;
|
$_SESSION["domframework"]["form"]["csrf"] = $this->csrfToken;
|
||||||
$_SESSION["domframework"]["form"]["csrfStart"] = microtime (TRUE);
|
$_SESSION["domframework"]["form"]["csrfStart"] = microtime (TRUE);
|
||||||
|
return $this->csrfToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check if the provided token is the right token, defined last displayed
|
/** Check if the provided token is the right token, defined last displayed
|
||||||
|
|||||||
Reference in New Issue
Block a user