Authentication Joomla登录后重定向
我为Joomla 2.5编写了一个小的授权插件(类),带有Authentication Joomla登录后重定向,authentication,redirect,joomla,joomla2.5,Authentication,Redirect,Joomla,Joomla2.5,我为Joomla 2.5编写了一个小的授权插件(类),带有onUserAuthenticate事件帮助。它看起来像: class plgauthenticationAuth extends JPlugin{ public function plgauthenticationAuth($subject, $config){ parent::__construct($subject,$config); } public function onUserAut
onUserAuthenticate
事件帮助。它看起来像:
class plgauthenticationAuth extends JPlugin{
public function plgauthenticationAuth($subject, $config){
parent::__construct($subject,$config);
}
public function onUserAuthenticate($credentials, $options, $response){
//my code
如何从这里将重定向设置为自定义url?尝试此操作
$mainframe = JFactory::getApplication();
$redirct = 'your url';
$mainframe->redirect($redirct);
在这种情况下,授权不起作用。我想我需要一些像onAfterRoute这样的ivent,但它只在经过授权后才能工作。