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