Hello,
I wanted that people could register as users by some form on webpage (as it was possible in modx evolution) and attach them to some group. I couldn’t find anything in api or docs so I took a glance at modx/processors/security/user/create.php
I don’t quite understand what’s going on there. As I understand this part of code is responsible for creating new user ’slot’ and then modyfing it:
$modx->invokeEvent('OnBeforeUserFormSave',array(
'mode' => 'new',
'id' => $_POST['id'],
));
As I later read in some Wiki:
invokeEvent();
This is not an API Function and requires extensive knowledge of the MODx core in order to be used correctly. Use of this function in areas other than the core code is discouraged and the team may provide little or no help on the use of this function.
My question is:
Does MODx Revolution provide some way of adding users in 3rd party code?
--
Regards
MM