mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 23:08:41 +00:00
Fixing csrf generation process
This commit is contained in:
parent
66e7eb03a6
commit
1abd8c271a
|
|
@ -64,8 +64,11 @@ class HttpSession implements SessionInterface
|
||||||
$this->sid = session_id();
|
$this->sid = session_id();
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
$CSRF = StringUtils::generateString(10, 16);
|
if(($CSRF = $this->get('CSRF')) === null) {
|
||||||
$this->set('CSRF', $CSRF, false);
|
$CSRF = StringUtils::generateString(10, 16);
|
||||||
|
$this->set('CSRF', $CSRF, false);
|
||||||
|
}
|
||||||
|
|
||||||
UriFactory::setQuery('$CSRF', $CSRF);
|
UriFactory::setQuery('$CSRF', $CSRF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user