mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 00:50:54 -04:00
Fix for Linkedin ouath
This commit is contained in:
parent
4a55e26117
commit
8675b25d1e
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user