Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/users/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function post()
$params = JComponentHelper::getParams("com_users");
$response = new stdClass;

$xidentifier = $app->input->server->get('HTTP_IDENTIFIER');
$xidentifier = $app->input->server->get('HTTP_X_IDENTIFIER');
$fidentifier = $app->input->server->get('HTTP_FORCECREATE');

if ($formData['username'] == '' || $formData['name'] == '' || $formData['email'] == '')
Expand Down Expand Up @@ -156,14 +156,16 @@ public function get()
{
$input = JFactory::getApplication()->input;
$id = $input->get('id', 0, 'int');
$xidentifier = $input->server->get('HTTP_X_IDENTIFIER', '', 'String');

/*
* If we have an id try to fetch the user
* @TODO write user field mapping logic here
*/
if ($id)
{
$user = JUser::getInstance($id);
// Get a user object
$user = $this->retriveUser($xidentifier, $id);

if (! $user->id)
{
Expand Down Expand Up @@ -262,7 +264,7 @@ public function delete()
{
$app = JFactory::getApplication();
$userIdentifier = $app->input->get('id', 0, 'STRING');
$xidentifier = $app->input->server->get('HTTP_IDENTIFIER');
$xidentifier = $app->input->server->get('HTTP_X_IDENTIFIER', '', 'String');

$loggedUser = JFactory::getUser();

Expand Down