OAuth: Compare strings so that numeric IDs can be used

This commit is contained in:
Igor Scheller 2021-08-14 15:29:05 +02:00
parent a8e012be72
commit f7b9f59d95
1 changed files with 1 additions and 1 deletions

View File

@ -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();