diff options
Diffstat (limited to 'app/controller')
-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) |