Commit ed2ca4fa authored by zorn's avatar zorn

Another workaround for custom oauth2

parent c0ab7db4
......@@ -33,6 +33,9 @@ class CustomOAuth2 extends OAuth2
if (!isset($response->identifier) && isset($response->id)) {
$response->identifier = $response->id;
}
if (!isset($response->identifier) && isset($response->data->id)) {
$response->identifier = $response->data->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