Projet

Général

Profil

Révision 2156464c

ID2156464c66d7c1f7d8836b76f15678b5caf3b88c
Parent a535a5df
Enfant bc8bb4d9

Ajouté par JTSage il y a presque 7 ans

Ubiquity Plugin: new controllers require the use of double quoted string to login

Voir les différences:

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