This is an addon that shows system information and allows you to log out of the admin panel account. But on another server with pure XenForo, the same problem.
I found a mistake in Class extensions in ACP in Base class name, instead of ('XF\Api\ControllerPlugin\User') I specified ('XF\Entity\User').
Thank you!
I tried, but it didn't work.
class User extends XFCP_User
{
public function getAccountEditInput()
{
$tableInput = parent::getAccountEditInput();
$tableInput['user'] = $this->filter([
'system_information' => '?str',
]);
return $tableInput...
I extended the "XF\Entity\User" class to add a new field to get it when authorizing with ('api/auth/from-session').
The code looks like this:
class User extends XFCP_User
{
protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array...