Added docs and set default users to level 1

This commit is contained in:
laf
2015-12-13 15:51:15 +00:00
parent 1f764d038b
commit dcf4d0f378
2 changed files with 18 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ function auth_usermanagement() {
}
function adduser($username, $password, $level=0, $email='', $realname='', $can_modify_passwd=0, $description='', $twofactor=0) {
function adduser($username, $password, $level=1, $email='', $realname='', $can_modify_passwd=0, $description='', $twofactor=0) {
// Check to see if user is already added in the database
if (!user_exists($username)) {
$userid = dbInsert(array('username' => $username, 'realname' => '', 'email' => '', 'descr' => '', 'level' => $level, 'can_modify_passwd' => 0, 'twofactor' => 0), 'users');