mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 18:24: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('task', 'login.' . $segments[2]);
|
||||
if ($segments[2] !== 'authorize')
|
||||
{
|
||||
$uri->setVar('format', 'json');
|
||||
}
|
||||
$uri->setVar('view', 'default');
|
||||
|
||||
$uri->setPath('');
|
||||
|
Loading…
Reference in New Issue
Block a user