Update core/ormpassword.class.inc.php

Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
This commit is contained in:
Sam B
2021-01-08 16:13:11 +01:00
committed by Stephen Abello
parent 7b5244b52d
commit 968720f774

View File

@@ -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);
}
}
?>
?>