Преглед изворни кода

fix trakt oauth issue for people with no cert in php setup

CauseFX пре 5 година
родитељ
комит
52c8d29d3c
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      api/functions/oauth.php

+ 2 - 0
api/functions/oauth.php

@@ -8,6 +8,8 @@ trait OAuthFunctions
 			'clientId' => $this->config['traktClientId'],
 			'clientSecret' => $this->config['traktClientSecret'],
 			'redirectUri' => $this->getServerPath() . 'api/v2/oauth/trakt'
+		], [
+			'httpClient' => new GuzzleHttp\Client(['verify' => getCert()]),
 		]);
 		if (!isset($_GET['code'])) {
 			$authUrl = $provider->getAuthorizationUrl();