Skip to content

Commit

Permalink
[2.5x] Import the user plugins for onUserLoginFailure
Browse files Browse the repository at this point in the history
Backport #2761 to Joomla 2.5
  • Loading branch information
zero-24 committed Aug 14, 2014
1 parent ba72d41 commit 98abf61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/joomla/application/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ public function login($credentials, $options = array())
$authenticate = JAuthentication::getInstance();
$response = $authenticate->authenticate($credentials, $options);

// Import the user plugin group.
JPluginHelper::importPlugin('user');

if ($response->status === JAuthentication::STATUS_SUCCESS)
{
// validate that the user should be able to login (different to being authenticated)
Expand Down Expand Up @@ -704,9 +707,6 @@ public function login($credentials, $options = array())
}
}

// Import the user plugin group.
JPluginHelper::importPlugin('user');

// OK, the credentials are authenticated and user is authorised. Lets fire the onLogin event.
$results = $this->triggerEvent('onUserLogin', array((array) $response, $options));

Expand Down

0 comments on commit 98abf61

Please sign in to comment.