diff options
author | Malf Furious <m@lfurio.us> | 2016-01-31 20:33:38 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-01-31 20:33:38 -0500 |
commit | 8640c13c934ff3e6d907b1e335edb83da088a2ca (patch) | |
tree | 360aa18766ef62f11116ce6a646f68f4d054ab22 /app/controller/root.control.php | |
parent | e15599108f64bd816eb32f8028a81e3db76c19ff (diff) | |
download | scrott-8640c13c934ff3e6d907b1e335edb83da088a2ca.tar.gz scrott-8640c13c934ff3e6d907b1e335edb83da088a2ca.zip |
Log in on signup success
Now, on a successful submission of the signup view form (Auth MVC), the app automatically logs in the newly-created user and redirects to Framework::ap() . "/".
Placeholder code has been added to the root controller to simply var_dump() the current logged in user if one exists, otherwise the login view (Auth MVC) is shown
Diffstat (limited to 'app/controller/root.control.php')
-rw-r--r-- | app/controller/root.control.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controller/root.control.php b/app/controller/root.control.php index b44ad76..06abf27 100644 --- a/app/controller/root.control.php +++ b/app/controller/root.control.php @@ -29,11 +29,19 @@ class Root extends Controller /* TODO */ /* TODO -- only auth if logged out */ - else + else if (!$this->getCurrentUser()) { $ctrl = new Auth(); $ctrl->handle($argv); } + + else + { + echo "logged in as:!"; + echo "<pre>"; + var_dump($this->getCurrentUser()); + echo "</pre>"; + } } /* |