From c6c3858312055c2fa8ba937e6066a3fe095c3560 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 19 Jan 2016 22:27:04 +0000 Subject: [PATCH] Some more scrut fixes --- html/includes/authentication/active_directory.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/html/includes/authentication/active_directory.inc.php b/html/includes/authentication/active_directory.inc.php index 6eb2a52c3e..9df49bacc1 100644 --- a/html/includes/authentication/active_directory.inc.php +++ b/html/includes/authentication/active_directory.inc.php @@ -83,12 +83,10 @@ function auth_usermanagement() { } -function adduser($username,$password, $level=0, $email='', $realname='', $can_modify_passwd=0, $description='', $twofactor=0) { +function adduser($username, $level=0, $email='', $realname='', $can_modify_passwd=0, $description='', $twofactor=0) { // Check to see if user is already added in the database if (!user_exists_in_db($username)) { - $hasher = new PasswordHash(8, false); - $encrypted = $hasher->HashPassword($password); - $userid = dbInsert(array('username' => $username, 'password' => $encrypted, 'realname' => $realname, 'email' => $email, 'descr' => $description, 'level' => $level, 'can_modify_passwd' => $can_modify_passwd, 'twofactor' => $twofactor, 'user_id' => get_userid($username)), 'users'); + $userid = dbInsert(array('username' => $username, 'realname' => $realname, 'email' => $email, 'descr' => $description, 'level' => $level, 'can_modify_passwd' => $can_modify_passwd, 'twofactor' => $twofactor, 'user_id' => get_userid($username)), 'users'); if ($userid == false) { return false; } @@ -163,7 +161,7 @@ function get_userid($username) { } -function deluser() { +function deluser($username) { dbDelete('bill_perms', '`user_name` = ?', array($username)); dbDelete('devices_perms', '`user_name` = ?', array($username)); dbDelete('ports_perms', '`user_name` = ?', array($username));