33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-02-03 04:18:25 +00:00

Update Helper.php

Username and password for Github no longer able to be supplied in credentials, so can no longer be used by helper.
This commit is contained in:
Patrick Jackson 2021-03-21 00:26:31 +11:00 committed by GitHub
parent fb4e987bb3
commit 1615f038d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,12 +48,6 @@ abstract class Helper
{
$options->set('headers', ['Authorization' => '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
{