Commit 1465b8ab authored by Donal McMullan's avatar Donal McMullan
Browse files

Logged in Users are created from the LiveUser object, and the session

object is a singleton
parent 51d6e34e
...@@ -180,8 +180,8 @@ header('Content-type: text/html; charset=UTF-8'); ...@@ -180,8 +180,8 @@ header('Content-type: text/html; charset=UTF-8');
// Only do authentication once we know the page theme, so that the login form // Only do authentication once we know the page theme, so that the login form
// can have the correct theming. // can have the correct theming.
require('auth/lib.php'); require('auth/lib.php');
$SESSION = new Session; $SESSION = Session::singleton();
$USER = new User($SESSION); $USER = new LiveUser();
// The installer does its own auth_setup checking, because some upgrades may // The installer does its own auth_setup checking, because some upgrades may
// break logging in and so need to allow no logins. // break logging in and so need to allow no logins.
if (!defined('INSTALLER')) { if (!defined('INSTALLER')) {
......
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