Trigger CreatedUser

Vote:
 

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?

Regards,

Kim

#22896
Aug 20, 2008 9:55
Vote:
 

Found a solution:

This is the event to listen to:

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

#22905
Aug 20, 2008 11:38