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:
2014-11-20 13:44:22 +00:00
parent 83f2c6e980
commit 6b9198f27c

View File

@@ -567,6 +567,7 @@ class csrf
$this->csrfToken = $s;
$_SESSION["domframework"]["form"]["csrf"] = $this->csrfToken;
$_SESSION["domframework"]["form"]["csrfStart"] = microtime (TRUE);
return $this->csrfToken;
}
/** Check if the provided token is the right token, defined last displayed