mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 04:55:54 +00:00
set csrf and access_level in single user mode session
This commit is contained in:
@@ -811,6 +811,8 @@
|
||||
|
||||
$_SESSION["uid"] = 1;
|
||||
$_SESSION["name"] = "admin";
|
||||
$_SESSION["access_level"] = 10;
|
||||
$_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
|
||||
|
||||
$_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user