mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +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
|
||||
$sHashedPwd = $this->ComputeHash($sClearTextPassword);
|
||||
if ($this->m_sHashed == $sHashedPwd)
|
||||
{
|
||||
$bResult = true;
|
||||
}
|
||||
$bResult = ($this->m_sHashed == $sHashedPwd);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -127,4 +124,4 @@ class ormPassword
|
||||
return hash('sha256', $this->m_sSalt.$sClearTextPwd);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user