From 0ac77132a2c0962fc120bb7b1362141879ce71d2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 11 Nov 2006 10:17:46 +0000 Subject: [PATCH] hash passwords with SSHA for self service --- lam/lib/modules/posixAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 15c7060f..2cfd49e3 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -1541,7 +1541,7 @@ class posixAccount extends baseModule { $return['messages'][] = $this->messages['userPassword'][1]; } else { - $return['mod']['userPassword'][0] = $_POST['posixAccount_password']; + $return['mod']['userPassword'][0] = pwd_hash($_POST['posixAccount_password'], true, 'SSHA'); $_SESSION['selfService_clientPasswordNew'] = $_POST['posixAccount_password']; } }