Skip to content

Commit

Permalink
[K6.0] Changing username in frontend causes error. J4.1.5 - K6.0.0 #9150
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit authored Jul 9, 2022
1 parent baf204d commit fe58747
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/site/src/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,14 +597,15 @@ protected function saveUser()
$session->set('user', $this->user);

// Update session if username has been changed
if ($username && $username != $this->user->username)
// TODO : the table session isn't able to be loaded with that
/* if ($username && $username != $this->user->username)
{
$table = Table::getInstance('session', 'JTable');
$table->load($session->getId());
$table->username = $this->user->username;
$table->store();
}
}*/
}

return true;
Expand Down

0 comments on commit fe58747

Please sign in to comment.