mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
fix in function des_cryptpasswd
This commit is contained in:
parent
264ed9b520
commit
b0f46deaa0
@ -1677,11 +1677,11 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
|||||||
function des_cryptpasswd($userpass, $random)
|
function des_cryptpasswd($userpass, $random)
|
||||||
{
|
{
|
||||||
$lcrypt = '{crypt}';
|
$lcrypt = '{crypt}';
|
||||||
$password = crypt($userpass);
|
$password = crypt($userpass, $random);
|
||||||
$ldappassword = sprintf('%s%s', $lcrypt, $password);
|
$ldappassword = sprintf('%s%s', $lcrypt, $password);
|
||||||
|
|
||||||
return $ldappassword;
|
return $ldappassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@function md5_cryptpasswd
|
@function md5_cryptpasswd
|
||||||
@abstract md5 encrypt password
|
@abstract md5 encrypt password
|
||||||
|
Loading…
Reference in New Issue
Block a user