I need to use 2 different Membership providers in my web application so I have set both of them in the web.config file. The 2 of them are based on Devart for PostgreSQL with the only difference that they need a different connection string each one. I see that, to create a new user with this approach, I need to issue the following command in code:
Code: Select all
Membership.Providers["nameOfProvider"].CreateUser(string UserName, string Password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status);
I found the information in the link below but I just do not get the idea, however I see that in my case it is related to the MembershipProvider, that is why I think that you can help.
https://msdn.microsoft.com/en-us/librar ... .110).aspx