Browse Source

set csrf and access_level in single user mode session

Andrew Dolgov 12 years ago
parent
commit
787e5ebc21
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/functions.php

+ 2 - 0
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"];