public function checkPassword($password) { $checkPassword = false; $currPass = $this->get('password'); if (Encrypt::checkPassword($password, $currPass)) { $checkPassword = true; } else { $checkPassword = false; } return $checkPassword; }