volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

CreateUser

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

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.