/** * This function is checking if the current password is correct. * * @param unknown $password * @return boolean */ private function checkUserCurrentPassword($password) { if (Sentry::checkPassword($password)) { return true; } else { return false; } }