Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to use ASP.NET Identity for several websites that i have created, and i do want to use the same database on each of them.

When i try to register two users with the same email, i get the "Name ****** is already taken." I have already set the field "RequireUniqueEmail = false" in IdentityConfig.

In the AspNetUsers i have a field called "web_id". It should be possible to create one identical user within one web_id, but it should be possible to create users with the same email on different web_id's.

Someone who knows how i can do this?
Posted
Comments
Afzaal Ahmad Zeeshan 27-Jun-15 16:45pm    
Try using different databases for different web applications.
Member 11283893 27-Jun-15 20:21pm    
Thanks for your answer, but that isn´t really an option for me. I have to modify the Identity-database. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900