diff options
author | Malf Furious <m@lfurio.us> | 2016-02-06 19:01:43 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-02-06 19:01:43 -0500 |
commit | 0b6f4ab1814c097ac30e293e91ecbf446fecaf48 (patch) | |
tree | 046568b17f86c253ab811254c258cbd6e025a4d0 /app/controller/auth.control.php | |
parent | b3a31ffef3a6203ec61e745821945b371fff7c22 (diff) | |
download | scrott-0b6f4ab1814c097ac30e293e91ecbf446fecaf48.tar.gz scrott-0b6f4ab1814c097ac30e293e91ecbf446fecaf48.zip |
Update Auth controller to work with recent MVC redesign (HEAD^^)
Diffstat (limited to 'app/controller/auth.control.php')
-rw-r--r-- | app/controller/auth.control.php | 20 |
1 files changed, 4 insertions, 16 deletions
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) |