Skip to content

Commit

Permalink
Fix bug preventing cv using '--user'
Browse files Browse the repository at this point in the history
  • Loading branch information
aydun committed Mar 25, 2019
1 parent f9a6d90 commit 8f407be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Utils/System/Joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ public function loadUser($username, $password = NULL) {
$instance->login($params);
}

// Save details in Joomla session
$user = JFactory::getUser($uid);
$jsession = JFactory::getSession();
$jsession->set('user', $user);

// Save details in Civi session
$session = CRM_Core_Session::singleton();
$session->set('ufID', $uid);
$session->set('userID', $contactID);
Expand Down

0 comments on commit 8f407be

Please sign in to comment.