Skip to content
Permalink
Browse files

Merge pull request #968 from jtsage/fix-ubiquity-plugin

Ubiquity Plugin: login error fix
  • Loading branch information...
sumpfralle committed Feb 1, 2019
2 parents 4aaccdc + 2156464 commit bc8bb4d9d74560b56196c6bf62e17047dca2c069
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/ubiquiti/unifi_api
@@ -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;

0 comments on commit bc8bb4d

Please sign in to comment.
You can’t perform that action at this time.