commit
b4fdd9bc50
@ -122,7 +122,7 @@ function dol_hash($chain, $type = '0')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Salt value
|
// Salt value
|
||||||
if (! empty($conf->global->MAIN_SECURITY_SALT)) $chain=$conf->global->MAIN_SECURITY_SALT.$chain;
|
if (! empty($conf->global->MAIN_SECURITY_SALT) && $type != '4' && $type !== 'md5openldap') $chain = $conf->global->MAIN_SECURITY_SALT.$chain;
|
||||||
|
|
||||||
if ($type == '1' || $type == 'sha1') return sha1($chain);
|
if ($type == '1' || $type == 'sha1') return sha1($chain);
|
||||||
elseif ($type == '2' || $type == 'sha1md5') return sha1(md5($chain));
|
elseif ($type == '2' || $type == 'sha1md5') return sha1(md5($chain));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user