I have the following code in my plugin.
public function init()
{
parent::init();
craft()->on('users.saveUser', function(Event $event) {
// only fire if new user
if ($event->params['isNewUser']) {
// business logic
// how do i save result to custom user fields etc...
}
});
}
I guess my question is whether the userRecod has already saved at this point? If so do I need to create another user object, make changes and call .save again? Or is the user still available to me?