fixed password hashing (1562426)

This commit is contained in:
Roland Gruber 2006-09-21 16:30:41 +00:00
parent 1ccfbbde8d
commit 6b4410cf77
2 changed files with 2 additions and 2 deletions

View File

@ -792,7 +792,7 @@ class posixAccount extends baseModule {
} }
else { else {
$this->clearTextPassword = $_POST['userPassword']; $this->clearTextPassword = $_POST['userPassword'];
$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword']); $this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword'], true, $this->moduleSettings['posixAccount_pwdHash'][0]);
} }
} }
return $errors; return $errors;

View File

@ -674,7 +674,7 @@ class posixGroup extends baseModule {
$errors[] = $this->messages['userPassword'][1]; $errors[] = $this->messages['userPassword'][1];
} }
else { else {
$this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword']); $this->attributes['userPassword'][0] = pwd_hash($_POST['userPassword'], true, $this->moduleSettings['posixAccount_pwdHash'][0]);
} }
return $errors; return $errors;
} }