Fix for Linkedin ouath

This commit is contained in:
Hillel Coren 2017-06-26 07:18:10 +03:00
parent 4a55e26117
commit 8675b25d1e

View File

@ -84,7 +84,8 @@ class LookupModel extends Eloquent
// check entity is found on the server // check entity is found on the server
if ($field === 'oauth_user_key') { if ($field === 'oauth_user_key') {
list($providerId, $oauthId) = explode('-', $value); $providerId = substr($value, 0, 1);
$oauthId = substr($value, 2);
$isFound = $entity::where('oauth_provider_id', '=', $providerId) $isFound = $entity::where('oauth_provider_id', '=', $providerId)
->where('oauth_user_id', '=', $oauthId)->first(); ->where('oauth_user_id', '=', $oauthId)->first();
} else { } else {