From f7b9f59d95a2b0a6ad55fe680aedb79f3f953ec3 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 14 Aug 2021 15:29:05 +0200 Subject: [PATCH] OAuth: Compare strings so that numeric IDs can be used --- src/Controllers/OAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/OAuthController.php b/src/Controllers/OAuthController.php index a3f7543a..fd83688a 100644 --- a/src/Controllers/OAuthController.php +++ b/src/Controllers/OAuthController.php @@ -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();