diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 85f455df..8d7bc03f 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -792,7 +792,7 @@ class posixAccount extends baseModule { } else { $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; diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index afd7864c..c1ad2a18 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -674,7 +674,7 @@ class posixGroup extends baseModule { $errors[] = $this->messages['userPassword'][1]; } 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; }