Question

I'm using MVC5, identity 2.0.0. There is email registration with email confirmation. It is possible to get or set confirmation validity? I think, it is wrong when people has registred by his email address and he can confirm it after one year, or he never confirm this address, because email belongs to other people.

Was it helpful?

Solution

This is probably not the answer you want, but based on some research it looks like this is an area that still needs some development in ASP.NET Identity.

This guy basically says that .NET Identity has got a long way to go, and lists email verification as a weak point of the library, but that was before 2.0.0 came out.

The Windows Azure website has an example application using Identity, but it doesn't seem to have email verification built in.

This guy has an example that is closer to what you want with email verification. But it would take some additional enhancements to get to where you want to be. And I'm not sure if he is using Identity 2. You might would want to add a date stamp, and disallow verifications that come in after a certain window of time.

Lastly, the Microsoft ASP.NET website has a request in for a full example of using email verification with Identity 2.0. But as of now, it is still under review.

edit June 5, 2014

To follow up on this question, it looks like the ASP.Net team has put together a couple of walkthroughs for setting up email account verification with Identity. Check out the links

here (http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity)

and here (http://www.asp.net/identity/overview/features-api/two-factor-authentication-using-sms-and-email-with-aspnet-identity).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top