Trigger CreatedUser


I've created an Eventlistener class which in it's most basic form is suppose to handle the CreatedUser event and add a default "my images" gallery for the created user.

When i run my project in debug mode, it runs the OnApplicationStart but the CreatedUser event never seems to be triggered when I add a user throught the administration interface.

This is how i bind the event in OnApplicationStart:

StarCommunity.Core.StarCommunitySystem.CurrentContext.DefaultSecurity.CreatedUser += new StarSuite.Core.Modules.Security.UserCreateEventHandler(DefaultSecurity_CreatedUser); 

Did I miss something or is there any other way to get to the CreatedUser event?



Aug 20, 2008 9:55

Found a solution:

This is the event to listen to:

StarSuite.Core.Settings.DefaultSecurity.CreatedUser += new StarSuite.Core.Modules.Security.UserCreateEventHandler(DefaultSecurity_CreatedUser);

Aug 20, 2008 11:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.