From faa6ca0b2e9430d2f9d689aab583a7f881ed03bf Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 1 Feb 2016 19:33:57 -0500 Subject: Implement 'login' action on Auth MVC Finished initial functionality for Auth MVC by implementing the login feature --- app/controller/auth.control.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/controller') diff --git a/app/controller/auth.control.php b/app/controller/auth.control.php index 9bb8349..0e970dd 100644 --- a/app/controller/auth.control.php +++ b/app/controller/auth.control.php @@ -25,6 +25,10 @@ class Auth extends Controller $this->action_signup_submit($mod); break; + case "login": + $this->action_login($mod); + break; + default: $this->action_default($mod); break; @@ -50,6 +54,12 @@ class Auth extends Controller $mod->signupSubmit($_REQUEST['input']); $this->action_signup($mod); } + + function action_login($mod) + { + $mod->login($_REQUEST['input']); + $this->action_default($mod); + } } ?> -- cgit v1.2.3