Skip to content

Commit

Permalink
Merge pull request #4109 from zero-24/patch-3
Browse files Browse the repository at this point in the history
[#34070] [2.5x] Import the user plugins for onUserLoginFailure
  • Loading branch information
infograf768 committed Aug 14, 2014
2 parents ba72d41 + 98abf61 commit 1c5a83a
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 1c5a83a

Please sign in to comment.