summaryrefslogtreecommitdiffstats
path: root/app/controller/root.control.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controller/root.control.php')
-rw-r--r--app/controller/root.control.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/controller/root.control.php b/app/controller/root.control.php
index 437cae1..06abf27 100644
--- a/app/controller/root.control.php
+++ b/app/controller/root.control.php
@@ -2,6 +2,7 @@
require_once "class/controller.class.php";
require_once "controller/sysconf.control.php";
+require_once "controller/auth.control.php";
/*
* Root-level controller for Scrott app. This object will delegate the page request to the
@@ -27,8 +28,20 @@ class Root extends Controller
}
/* TODO */
+ /* TODO -- only auth if logged out */
+ else if (!$this->getCurrentUser())
+ {
+ $ctrl = new Auth();
+ $ctrl->handle($argv);
+ }
+
else
- echo "Configuration is present!";
+ {
+ echo "logged in as:!";
+ echo "<pre>";
+ var_dump($this->getCurrentUser());
+ echo "</pre>";
+ }
}
/*