From: Andrew Dolgov Date: Tue, 20 Mar 2012 05:23:54 +0000 (+0400) Subject: set csrf and access_level in single user mode session X-Git-Tag: 1.5.11~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d;p=tt-rss.git set csrf and access_level in single user mode session --- diff --git a/include/functions.php b/include/functions.php index 84b6da01..c19915bb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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"];