Révision 2156464c
Ubiquity Plugin: new controllers require the use of double quoted string to login
| plugins/ubiquiti/unifi_api | ||
|---|---|---|
| 1113 | 1113 |
$curl->setopt($curl->CURLOPT_SSL_VERIFYHOST, (( $APIconfig{"ssl_verify_host"} =~ m/no/i ) ? 0 : 2) );
|
| 1114 | 1114 |
$curl->setopt($curl->CURL_SSLVERSION_TLSv1, 1); |
| 1115 | 1115 |
$curl->setopt($curl->CURLOPT_URL, $APIPoint{'login'});
|
| 1116 |
$curl->setopt($curl->CURLOPT_POSTFIELDS, q[{'username':'] . $APIconfig{"user"} . q[', 'password':'] . $APIconfig{"pass"} . q['}] );
|
|
| 1116 |
$curl->setopt($curl->CURLOPT_POSTFIELDS, q[{"username":"] . $APIconfig{"user"} . q[", "password":"] . $APIconfig{"pass"} . q["}] );
|
|
| 1117 | 1117 |
$curl->setopt($curl->CURLOPT_WRITEDATA, \$APIResponse{'login'});
|
| 1118 | 1118 |
$retcode = $curl->perform; |
| 1119 | 1119 |
|
Formats disponibles : Unified diff