OAuth: Compare strings so that numeric IDs can be used

main
Igor Scheller 3 years ago
parent a8e012be72
commit f7b9f59d95

@ -138,7 +138,7 @@ class OAuthController extends BaseController
->where('identifier', $resourceId) ->where('identifier', $resourceId)
->get() ->get()
// Explicit case sensitive comparison using PHP as some DBMS collations are case sensitive and some arent // Explicit case sensitive comparison using PHP as some DBMS collations are case sensitive and some arent
->where('identifier', '===', $resourceId) ->where('identifier', '===', (string)$resourceId)
->first(); ->first();
$expirationTime = $accessToken->getExpires(); $expirationTime = $accessToken->getExpires();

Loading…
Cancel
Save