Commit 4f70d6f3 authored by Michael Ochmann's avatar Michael Ochmann

made groups persistent

parent d44a1376
......@@ -40,6 +40,8 @@ class Authenticator {
$this->user = $_SESSION["username"];
$this->authenticated = true;
}
if (isset($_SESSION["groups"]))
$this->groups = unserialize($_SESSION["groups"]);
else
$this->authenticated = false;
}
......@@ -82,6 +84,7 @@ class Authenticator {
$this->authenticated = true;
$this->groups = $data->groups;
$_SESSION["username"] = $data->username;
$_SESSION["groups"] = serialize($data->groups);
header("Location: ./");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment