From 0b6f4ab1814c097ac30e293e91ecbf446fecaf48 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 6 Feb 2016 19:01:43 -0500 Subject: Update Auth controller to work with recent MVC redesign (HEAD^^) --- app/controller/auth.control.php | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'app/controller/auth.control.php') diff --git a/app/controller/auth.control.php b/app/controller/auth.control.php index 0e970dd..6269c9c 100644 --- a/app/controller/auth.control.php +++ b/app/controller/auth.control.php @@ -21,10 +21,6 @@ class Auth extends Controller $this->action_signup($mod); break; - case "signup_submit": - $this->action_signup_submit($mod); - break; - case "login": $this->action_login($mod); break; @@ -37,22 +33,14 @@ class Auth extends Controller function action_default($mod) { - if ($mod->deflt()) - include "view/auth/default.view.php"; - else - $this->action_signup($mod); + $mod->deflt(); + include "view/auth/default.view.php"; } function action_signup($mod) { - $mod->signup(); - include "view/auth/signup.view.php"; - } - - function action_signup_submit($mod) - { - $mod->signupSubmit($_REQUEST['input']); - $this->action_signup($mod); + $mod->signup($_REQUEST['input']); + $this->action_default($mod); } function action_login($mod) -- cgit v1.2.3