OAuth: Compare strings so that numeric IDs can be used
This commit is contained in:
parent
a8e012be72
commit
f7b9f59d95
|
@ -138,7 +138,7 @@ class OAuthController extends BaseController
|
|||
->where('identifier', $resourceId)
|
||||
->get()
|
||||
// Explicit case sensitive comparison using PHP as some DBMS collations are case sensitive and some arent
|
||||
->where('identifier', '===', $resourceId)
|
||||
->where('identifier', '===', (string)$resourceId)
|
||||
->first();
|
||||
|
||||
$expirationTime = $accessToken->getExpires();
|
||||
|
|
Loading…
Reference in New Issue