summaryrefslogtreecommitdiffstats
path: root/app/model/auth.mod.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-01-28 20:39:47 -0500
committerMalf Furious <m@lfurio.us>2016-01-28 20:39:47 -0500
commit3a111ed74e89e9634e5baf4375625acc6ad262e6 (patch)
treeb23b584283f57564c9e7790f689855dedc901758 /app/model/auth.mod.php
parent635ceb4808624ad6676d43e83c1ff5a7d4341d36 (diff)
downloadscrott-3a111ed74e89e9634e5baf4375625acc6ad262e6.tar.gz
scrott-3a111ed74e89e9634e5baf4375625acc6ad262e6.zip
Finish signup and initialSignup actions on Auth MVC
If no accounts exist no login page will be shown. Instead, the app presents the signup page to allow the administrator to create his account. This is the only case where a new account should be an admin by default.
Diffstat (limited to 'app/model/auth.mod.php')
-rw-r--r--app/model/auth.mod.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/model/auth.mod.php b/app/model/auth.mod.php
index 9cd6b7c..5b655d6 100644
--- a/app/model/auth.mod.php
+++ b/app/model/auth.mod.php
@@ -20,6 +20,21 @@ class AuthModel extends CommonModel
return true;
}
+
+ /*
+ * Initial signup action
+ */
+ function initialSignup()
+ {
+ $this->noaccounts = true;
+ }
+
+ /*
+ * Signup action
+ */
+ function signup()
+ {
+ }
}
?>