From 6b4410cf772c1f41e332fb617182d07acc6d2615 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 21 Sep 2006 16:30:41 +0000 Subject: [PATCH] fixed password hashing (1562426) --- lam/lib/modules/posixAccount.inc | 2 +- lam/lib/modules/posixGroup.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }