mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Merge pull request #968 from jtsage/fix-ubiquity-plugin
Ubiquity Plugin: login error fix
This commit is contained in:
commit
bc8bb4d9d7
1 changed files with 1 additions and 1 deletions
|
@ -1113,7 +1113,7 @@ sub fetch_data {
|
||||||
$curl->setopt($curl->CURLOPT_SSL_VERIFYHOST, (( $APIconfig{"ssl_verify_host"} =~ m/no/i ) ? 0 : 2) );
|
$curl->setopt($curl->CURLOPT_SSL_VERIFYHOST, (( $APIconfig{"ssl_verify_host"} =~ m/no/i ) ? 0 : 2) );
|
||||||
$curl->setopt($curl->CURL_SSLVERSION_TLSv1, 1);
|
$curl->setopt($curl->CURL_SSLVERSION_TLSv1, 1);
|
||||||
$curl->setopt($curl->CURLOPT_URL, $APIPoint{'login'});
|
$curl->setopt($curl->CURLOPT_URL, $APIPoint{'login'});
|
||||||
$curl->setopt($curl->CURLOPT_POSTFIELDS, q[{'username':'] . $APIconfig{"user"} . q[', 'password':'] . $APIconfig{"pass"} . q['}] );
|
$curl->setopt($curl->CURLOPT_POSTFIELDS, q[{"username":"] . $APIconfig{"user"} . q[", "password":"] . $APIconfig{"pass"} . q["}] );
|
||||||
$curl->setopt($curl->CURLOPT_WRITEDATA, \$APIResponse{'login'});
|
$curl->setopt($curl->CURLOPT_WRITEDATA, \$APIResponse{'login'});
|
||||||
$retcode = $curl->perform;
|
$retcode = $curl->perform;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue