瀏覽代碼

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();