summaryrefslogtreecommitdiffstats
path: root/app/model/auth.mod.php
blob: 5b655d64e5a2714db28a59749bec1b36d56cbf99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

require_once "model/common.mod.php";
require_once "class/user.class.php";

class AuthModel extends CommonModel
{
    /*
     * Default action
     */
    function deflt()
    {
        /* Make sure user accounts exist since this is preping the page to login.  If there are no accounts in the DB,
         * return false to signal controller to display the admin account creation */

        $userTbl = new User();

        if (count($userTbl->getAllUsers_orderByName()) == 0)
            return false;

        return true;
    }

    /*
     * Initial signup action
     */
    function initialSignup()
    {
        $this->noaccounts = true;
    }

    /*
     * Signup action
     */
    function signup()
    {
    }
}

?>