Overriding the Default User Creation Routine

Topics: Customizing Orchard, General, Writing modules
Jul 11, 2011 at 9:41 AM

How could I change the routine for creating a user to implement the creation of another record as part of the user creation routine?

I would like to use an existing "Account" or "Organisation" when a user is created if one is supplied or create a new one if it is not.

Then I would like to list any user in a given organisation and basically use it as a filter while fetching data.

There is the Orchard.Users.Services.MembershipService.CreateUser which accepts CreateUserParams as the first parameter.

Would I need to override just that method and the CreateUserParams Object or is there a way to hook up to an Event somewhere that I could create the Account? I would like to make the Users Account relationship mandatory if possible. Any ideas?

Jul 11, 2011 at 10:16 PM

Dont worry about this one, I've worked a way to get what I need without doing this. ta