From b0f46deaa0c64bf0f1e8258046e6e2222ee3d6d3 Mon Sep 17 00:00:00 2001 From: ceb Date: Sun, 24 Nov 2002 21:53:21 +0000 Subject: [PATCH] fix in function des_cryptpasswd --- phpgwapi/inc/class.common.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index e665407df5..030d30a94c 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1677,11 +1677,11 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info' function des_cryptpasswd($userpass, $random) { $lcrypt = '{crypt}'; - $password = crypt($userpass); + $password = crypt($userpass, $random); $ldappassword = sprintf('%s%s', $lcrypt, $password); - return $ldappassword; } + /*! @function md5_cryptpasswd @abstract md5 encrypt password