set csrf and access_level in single user mode session

master
Andrew Dolgov 12 years ago
parent fe2f004cd9
commit 787e5ebc21

@ -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"];

Loading…
Cancel
Save