set csrf and access_level in single user mode session
This commit is contained in:
parent
fe2f004cd9
commit
787e5ebc21
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue