fixed password fields

This commit is contained in:
Roland Gruber 2003-08-29 11:51:57 +00:00
parent a6c6ccf124
commit ad7096e5b9
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user']){
$users = array_keys($_POST, "on");
$userlist = array();
// load users from LDAP
for ($i = 0; $i < sizeof($users); $i++) $userlist[] = loaduser($users[$i]);
for ($i = 0; $i < sizeof($users); $i++) {
$userlist[$i] = loaduser($users[$i]);
$userlist[$i]->unix_password = "";
$userlist[$i]->smb_password = "";
}
createUserPDF($userlist);
}
exit;