Commit dd75d033 authored by cividesk's avatar cividesk

Move JIRA credentials to config file.

parent 66694c55
......@@ -10,8 +10,8 @@
const DBHOST = 'localhost';
const DBNAME = 'stats_central';
const DBUSER = 'root';
const DBPASS = '';
const DBUSER = '<username>';
const DBPASS = '<password>';
// Ping-backs database (http://latest.civicrm.org)
const DBPING = 'civicrm_raw_stats';
......@@ -21,3 +21,7 @@ const DBDOWN = 'civicrm_downloads';
const DBFORUM = 'civicrm_forum';
const DATESTART = '2004-12-07 06:13:00'; // Date of the start of the project (from JIRA)
// JIRA credentials
define('JIRA_USERNAME', '<username>');
define('JIRA_PASSWORD', '<password>');
\ No newline at end of file
......@@ -7,7 +7,7 @@ require __DIR__ . "/../vendor/autoload.php";
function getApiClient() {
$api = new \chobie\Jira\Api(
"https://issues.civicrm.org/jira",
new \chobie\Jira\Api\Authentication\Basic("nganivet", "6NVBpJEwk0")
new \chobie\Jira\Api\Authentication\Basic(JIRA_USERNAME, JIRA_PASSWORD)
);
return $api;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment