mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-06 20:51:01 +02:00
fix csrf_token for single user mode
This commit is contained in:
parent
ecbd7b91fe
commit
21e42e5fb0
@ -838,7 +838,10 @@
|
|||||||
$_SESSION["uid"] = 1;
|
$_SESSION["uid"] = 1;
|
||||||
$_SESSION["name"] = "admin";
|
$_SESSION["name"] = "admin";
|
||||||
$_SESSION["access_level"] = 10;
|
$_SESSION["access_level"] = 10;
|
||||||
$_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
|
|
||||||
|
if (!$_SESSION["csrf_token"]) {
|
||||||
|
$_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
|
||||||
|
}
|
||||||
|
|
||||||
$_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];
|
$_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user