From 3a111ed74e89e9634e5baf4375625acc6ad262e6 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 28 Jan 2016 20:39:47 -0500 Subject: 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. --- app/model/auth.mod.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/model/auth.mod.php') 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() + { + } } ?> -- cgit v1.2.3