diff --git a/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php b/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php index cedf0d55..5497e856 100644 --- a/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php +++ b/administrator/components/com_patchtester/PatchTester/GitHub/GitHub.php @@ -70,27 +70,6 @@ protected function fetchUrl($path, $page = 0, $limit = 0) // Get a new Uri object using the API URL and given path. $uri = new Uri($this->options->get('api.url') . $path); - // Only apply basic authentication if an access token is not set - if ($this->options->get('gh.token', false) === false) - { - // Use basic authentication - if ($this->options->get('api.username', false)) - { - $username = $this->options->get('api.username'); - $username = str_replace('@', '%40', $username); - $username = str_replace('#', '%23', $username); - $uri->setUser($username); - } - - if ($this->options->get('api.password', false)) - { - $password = $this->options->get('api.password'); - $password = str_replace('@', '%40', $password); - $password = str_replace('#', '%23', $password); - $uri->setPass($password); - } - } - // If we have a defined page number add it to the JUri object. if ($page > 0) { diff --git a/administrator/components/com_patchtester/PatchTester/Helper.php b/administrator/components/com_patchtester/PatchTester/Helper.php index ddf2312c..93a4fd2f 100644 --- a/administrator/components/com_patchtester/PatchTester/Helper.php +++ b/administrator/components/com_patchtester/PatchTester/Helper.php @@ -48,12 +48,6 @@ public static function initializeGithub() { $options->set('gh.token', $params->get('gh_token', '')); } - // Set the username and password if set in the params - elseif ($params->get('gh_user', '') && $params->get('gh_password')) - { - $options->set('api.username', $params->get('gh_user', '')); - $options->set('api.password', $params->get('gh_password', '')); - } // Display a message about the lowered API limit without credentials else { diff --git a/administrator/components/com_patchtester/config.xml b/administrator/components/com_patchtester/config.xml index d45b6077..59a96848 100644 --- a/administrator/components/com_patchtester/config.xml +++ b/administrator/components/com_patchtester/config.xml @@ -60,31 +60,9 @@ > - - - - - -