Back to Authentication class

Method authorise

public \Joomla\CMS\Authentication\AuthenticationResponse[]
authorise
(mixed $response, mixed $options = array())
Authorises that a particular user should be able to login
Parameters
  • \Joomla\CMS\Authentication\AuthenticationResponse $response response including username of the user to authorise
  • array $options list of options
Returns
  • \Joomla\CMS\Authentication\AuthenticationResponse[] Array of authentication response objects
Since
  • 1.7.0
-
  • \Exception

Method authorise - Source code

/**
 * Authorises that a particular user should be able to login
 *
 * @param   AuthenticationResponse  $response  response including username of the user to authorise
 * @param   array                   $options   list of options
 *
 * @return  AuthenticationResponse[]  Array of authentication response objects
 *
 * @since  1.7.0
 * @throws \Exception
 */
public function authorise($response, $options = array())
{
    // Get plugins in case they haven't been imported already
    PluginHelper::importPlugin('user');
    $results = Factory::getApplication()->triggerEvent('onUserAuthorisation', array($response, $options));
    return $results;
}