I would like to assign role to users on registration from my module.
I checked the
createPostAction() method of
Mage_Customer_AccountController class where i found these lines:
$customer->save(); Mage::dispatchEvent('customer_register_success', array('account_controller' => $this, 'customer' => $customer) );
Can i use event/observer ['customer_register_success'] to assign the group? Should i create an event observer class in my module or there are better approaches?