I would like to be able to perform actions on those users that register through the front end and skip ones who are created in the CP... is there are way of checking or a parameter accessible in the onBeforeSaveUser or onSaveUser events?
I assume there must be something hidden in there as users registered on the front end can be assigned to a certain user group which isn't applied to a CP registration.
onBeforeSaveUser
but not necessarily in theonSaveUser
. It may depend on the auto-login settings and when that gets fired. What are you trying to ultimately accomplish?impersonate($user->$id)
on line 822 of UsersController executes after the onSaveUser event fires, so should be a safe check there also.