Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

CreateUser

Vote:
 

Is it the same to use the .NET procedures than the EPiServer ones while creating users, roles and profiles?

I mean, is it the same to do use this:

Membership.CreateUser()

and this:

multiplexingMembershipProvider.CreateUser()

Thanks

#81847
Feb 27, 2014 16:17
Vote:
 

The multiplexing membership provider uses the CreateUser method on the DefaultProvider. Disassembling EPiServer.Security shows

MembershipUser membershipUser = this.DefaultProvider.CreateUser(..

Assuming you're using the default configuration, I guess that would be provider1; System.Web.Security.SqlMembershipProvider. CMIIMW. If I remember correctly the SqlMembershipProvider calls an aspnet stored procedure on the database (dbo.aspnet_Membership_CreateUser or the like). So a guess would be that Membership.CreateUser() ends up doing the same thing.

If you'd like to have a look try ILspying System.Web.Security.SqlMembershipProvider.CreateUser

Hope this helps.

//Mathias

 

#81863
Feb 27, 2014 22:08
* 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.