Yes, trying to find specific code in the Login package can make your hair fall out.
That code is in the register.php processor (in core/components/login/processors/), but I think you can just use something like this instead and let the Register snippet handle everything:
$properties = array(
// I'm guessing at these six:
'usernameField' = 'username',
'username' = $userName,
'passwordField' = 'password',
'password' = $password,
'emailField' = 'email',
'email' = $email;
'submitVar' = 'login-register-btn',
'activationResourceId' = '12', // ID of the page with the ConfirmRegister snippet
'submittedResourceId' = '13', // ID of your "Thanks for Registering" page
'activationttl' = `480`, // Number of minutes until activation email expires
'usergroups' = 'Subscribers:Subscriber', // (optional) usergroup:role
'useExtended' = '0', // unless you have extended fields set
'activationEmailTpl' = 'ActivationEmailTpl', // name of activation email Tpl chunk
'activationEmailSubject' = 'Please activate your account at yoursitename.com ',
);
$modx->runSnippet('Register', $properties);
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
[ed. note: BobRay last edited this post 14 years ago.]