I'm trying to listen for an event when users create new accounts. I have the following code in my init() function in my main plugin class:
craft()->on('users.activateUser', function(Event $event) {
error_log("user activated");
});
This isn't firing when new users register on the site and I'm wondering if this has to do with the "Verify email addresses?" users setting. I'm not requiring users to verify their email addresses. Does that setting have to be checked in order to trigger that event? If so, is there a different event to listen for?