mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
setting the default for encrypt_ldap() to des and not just return false, the default is needed if you never saved setup >> config
This commit is contained in:
parent
4d200374a2
commit
5dc4617462
@ -134,6 +134,7 @@
|
||||
$salt = '';
|
||||
switch($type)
|
||||
{
|
||||
default: // eg. setup >> config never saved
|
||||
case 'des':
|
||||
$salt = $this->randomstring(2);
|
||||
$_password = crypt($password, $salt);
|
||||
@ -170,8 +171,6 @@
|
||||
$hash = mhash(MHASH_SHA1, $password . $salt);
|
||||
$e_password = '{SSHA}' . base64_encode($hash . $salt);
|
||||
break;
|
||||
default:
|
||||
return False;
|
||||
}
|
||||
return $e_password;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user