mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 22:34:50 +03:00
Switch to format json
This commit is contained in:
parent
f01b5f8fd7
commit
34289ae0e2
@ -71,6 +71,10 @@ class Plugin extends CMSPlugin implements SubscriberInterface
|
|||||||
|
|
||||||
$uri->setVar('option', 'com_oauthserver');
|
$uri->setVar('option', 'com_oauthserver');
|
||||||
$uri->setVar('task', 'login.' . $segments[2]);
|
$uri->setVar('task', 'login.' . $segments[2]);
|
||||||
|
if ($segments[2] !== 'authorize')
|
||||||
|
{
|
||||||
|
$uri->setVar('format', 'json');
|
||||||
|
}
|
||||||
$uri->setVar('view', 'default');
|
$uri->setVar('view', 'default');
|
||||||
|
|
||||||
$uri->setPath('');
|
$uri->setPath('');
|
||||||
|
Loading…
Reference in New Issue
Block a user