Fixed missing argument in basic auth.

This commit is contained in:
flash 2024-09-03 20:37:06 +00:00
parent 868a06f036
commit b127da74f0

View file

@ -58,7 +58,10 @@ class OAuth2Routes extends RouteHandler {
$content = $request->getContent(); $content = $request->getContent();
if(!$authz->hasAuthed()) if(!$authz->hasAuthed())
$authz->attemptBasicAppAuth((string)$content->getParam('client_id')); $authz->attemptBasicAppAuth(
(string)filter_input(INPUT_SERVER, 'REMOTE_ADDR'),
(string)$content->getParam('client_id')
);
if(!$authz->isApp()) if(!$authz->isApp())
return self::filter($response, [ return self::filter($response, [