Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm developing a WEB API asp.net project with visual studio 2013, and I'm implementing my custom Identity model for custom registration. For example I've added an email field in the RegisterBindingModel.

This is what I've done: How to extend asp.net web api 2 user?

I need that the user add an unique email, but by default that field can be repeated. My question is how do I make this email property unique, like Username? I've read that unique properties can be set with UserValidator, but can't find how. Can you tell me how I can make that, with UserValidator or the best way?

And how's the Username defined as unique? I can't find it anywhere.

Thank you.
Posted
Updated 6-Mar-14 17:51pm
v3

1 solution

You can refer the following article to add an extra property using ASP.NET Identity:

Adding Data using ASP.NET Identity
 
Share this answer
 
Comments
tnill 6-Mar-14 23:35pm    
That's exactly what i've done until now. I need the next step which is what i'm asking. Thanks btw

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