/** * Internal helper, which does the actual trusted Midgard authentication. * * @param string $username The name of the user to authenticate. * @return boolean Indicating success. */ private function _do_trusted_midgard_auth($username) { if ($username == '') { debug_add("Failed to authenticate: Username is empty.", MIDCOM_LOG_ERROR); return false; } $this->user = midcom_connection::login($username, '', true); return $this->_load_person($username); }