libraries/joomla/user/authentication.php
the public static function authorise() does not trigger onUserAuthorisation for user,authentication plugins.
This is because the plugins are not imported correctly.
Current code:
Code: Select all
public static function authorise($response, $options = array())
{
// Get plugins in case they haven't been loaded already
JPluginHelper::getPlugin('user');
JPluginHelper::getPlugin(‘authentication');
$dispatcher = JDispatcher::getInstance();
$results = $dispatcher->trigger('onUserAuthorisation', array($response, $options));
return $results;
}
Code: Select all
public static function authorise($response, $options = array())
{
// Get plugins in case they haven't been loaded already
JPluginHelper::importPlugin('user');
JPluginHelper::importPlugin('authentication');
$dispatcher = JDispatcher::getInstance();
$results = $dispatcher->trigger('onUserAuthorisation', array($response, $options));
return $results;
}
Thanks!
Mark Dobrinic