diff options
author | Malf Furious <m@lfurio.us> | 2016-01-30 21:49:42 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-01-30 21:49:42 -0500 |
commit | ed1b89d4aa07393d7a9f75c689c4877acfa38826 (patch) | |
tree | ea897da08072d88482f18fba08b998d72c5df636 /app/controller | |
parent | 2b6afdd9ef767e1e84c4751c72da6be13d9b4402 (diff) | |
download | scrott-ed1b89d4aa07393d7a9f75c689c4877acfa38826.tar.gz scrott-ed1b89d4aa07393d7a9f75c689c4877acfa38826.zip |
Implement signup_submit action on Auth MVC
Submissions to the Auth signup page are now fully handled by either creating a new account (User object in the system) or posting an error message to the page (Auth model)
Diffstat (limited to 'app/controller')
-rw-r--r-- | app/controller/auth.control.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controller/auth.control.php b/app/controller/auth.control.php index 7fafd11..693d190 100644 --- a/app/controller/auth.control.php +++ b/app/controller/auth.control.php @@ -21,6 +21,10 @@ class Auth extends Controller $this->action_signup($mod); break; + case "signup_submit": + $this->action_signup_submit($mod); + break; + default: $this->action_default($mod); break; @@ -46,6 +50,12 @@ class Auth extends Controller $mod->signup(); include "view/auth/signup.view.php"; } + + function action_signup_submit($mod) + { + $mod->signupSubmit($_REQUEST['input']); + $this->action_signup($mod); + } } ?> |