summaryrefslogtreecommitdiffstats
path: root/app/controller/auth.control.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controller/auth.control.php')
-rw-r--r--app/controller/auth.control.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/app/controller/auth.control.php b/app/controller/auth.control.php
index 00c71f6..7fafd11 100644
--- a/app/controller/auth.control.php
+++ b/app/controller/auth.control.php
@@ -17,6 +17,10 @@ class Auth extends Controller
switch ($_REQUEST['input']['action'])
{
+ case "signup":
+ $this->action_signup($mod);
+ break;
+
default:
$this->action_default($mod);
break;
@@ -25,8 +29,22 @@ class Auth extends Controller
function action_default($mod)
{
- $mod->deflt();
- include "view/auth/default.view.php";
+ if ($mod->deflt())
+ include "view/auth/default.view.php";
+ else
+ $this->action_initial_signup($mod);
+ }
+
+ function action_initial_signup($mod)
+ {
+ $mod->initialSignup();
+ $this->action_signup($mod);
+ }
+
+ function action_signup($mod)
+ {
+ $mod->signup();
+ include "view/auth/signup.view.php";
}
}