Switch to format json

This commit is contained in:
Artem Vasilev 2024-03-12 11:57:28 +03:00
parent f01b5f8fd7
commit 34289ae0e2

View File

@ -71,6 +71,10 @@ class Plugin extends CMSPlugin implements SubscriberInterface
$uri->setVar('option', 'com_oauthserver');
$uri->setVar('task', 'login.' . $segments[2]);
if ($segments[2] !== 'authorize')
{
$uri->setVar('format', 'json');
}
$uri->setVar('view', 'default');
$uri->setPath('');