From 8640c13c934ff3e6d907b1e335edb83da088a2ca Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 31 Jan 2016 20:33:38 -0500 Subject: 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 --- app/model/auth.mod.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/model') diff --git a/app/model/auth.mod.php b/app/model/auth.mod.php index cdf416b..9fa67e4 100644 --- a/app/model/auth.mod.php +++ b/app/model/auth.mod.php @@ -63,6 +63,7 @@ class AuthModel extends CommonModel return; } + $this->setCurrentUser($user); $this->redirectTo($this->ap() . "/"); } } -- cgit v1.2.3