Commit 9bd0ac3b authored by zorn's avatar zorn

Fixed custom oauth workaround

parent cb9f9184
......@@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description></description>
<version>1.9.3</version>
<version>1.9.4</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
......
......@@ -30,8 +30,8 @@ class CustomOAuth2 extends OAuth2
}
$response = $this->apiRequest($profileUrl);
if (!isset($response['identifier']) && isset($response['id'])) {
$response['identifier'] = $response['id'];
if (!isset($response->identifier) && isset($response->id)) {
$response->identifier = $response->id;
}
$data = new Data\Collection($response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment