diff --git a/core/ormpassword.class.inc.php b/core/ormpassword.class.inc.php index e68456295..a106977ae 100644 --- a/core/ormpassword.class.inc.php +++ b/core/ormpassword.class.inc.php @@ -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); } } -?> \ No newline at end of file +?>