mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Update core/ormpassword.class.inc.php
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
This commit is contained in:
@@ -101,10 +101,7 @@ class ormPassword
|
|||||||
{
|
{
|
||||||
//unknown, assume it's a legacy password
|
//unknown, assume it's a legacy password
|
||||||
$sHashedPwd = $this->ComputeHash($sClearTextPassword);
|
$sHashedPwd = $this->ComputeHash($sClearTextPassword);
|
||||||
if ($this->m_sHashed == $sHashedPwd)
|
$bResult = ($this->m_sHashed == $sHashedPwd);
|
||||||
{
|
|
||||||
$bResult = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -127,4 +124,4 @@ class ormPassword
|
|||||||
return hash('sha256', $this->m_sSalt.$sClearTextPwd);
|
return hash('sha256', $this->m_sSalt.$sClearTextPwd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user