mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Ubiquity Plugin: new controllers require the use of double quoted string to login
This commit is contained in:
parent
a535a5df53
commit
2156464c66
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->CURL_SSLVERSION_TLSv1, 1);
|
||||
$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'});
|
||||
$retcode = $curl->perform;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue