电子邮件确认与MVC 5和Asp.net身份 [英] Email Confirmation with MVC 5 and Asp.net Identity

查看:80
本文介绍了电子邮件确认与MVC 5和Asp.net身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找,但没有发现对如何实现电子邮件确认与MVC 5使用新的ASP.net身份的任何文件。似乎没有要上这个话题(我能找到)的任何文档。

I have been searching, but have not found any documentation on how to implement Email confirmation with MVC 5 using the new ASP.net Identity. There does not seem to be any documentation on this topic (that I could find).

有没有人解决了这个了吗?我很惊讶,这是不包括在默认的MVC 5项目。默认

Has anyone solved this yet? I am very surprised that this is not included by default in the default MVC 5 project.

任何指导,大大AP preciated。

Any guidance is greatly appreciated.

感谢您

推荐答案

我已经写了<一个href=\"http://kevin-junghans.blogspot.in/2013/10/adding-email-confirmation-to-aspnet.html\">step-by-step本文就如何使用ASP.NET身份时添加电子邮件确认。您可以这里在项目文件夹中的 AspNetIdentity \\ AspNetIdentityRefApp 。我也创建一个封装ASP.NET身份,使它更容易在新的MVC 5的应用程序和模拟由SimpleMembership使用的WebSecurity API纳入一个服务层。你可以从得到类库 AspNetIdentity \\ SimpleSecurity.AspNetIdentity 还有引用的应用程序在 AspNetIdentity \\ SimpleSecurity.AspNetIdentity.RefApp 使用这个库。类库和参考应用程序还说明了如何使用基于Web的API令牌和基本身份验证实现重置密码。

I have written a step-by-step article on how to add email confirmation when using ASP.NET Identity. You can get the source code here in the project folder AspNetIdentity\AspNetIdentityRefApp. I have also created a service layer that encapsulates ASP.NET Identity, making it easier to incorporate in new MVC 5 applications and mimics the WebSecurity API used by SimpleMembership. You can get that class library from AspNetIdentity\SimpleSecurity.AspNetIdentity There is also reference app for using this library in AspNetIdentity\SimpleSecurity.AspNetIdentity.RefApp. The class library and reference app also show how to implement password reset using a token and basic authentication on Web API's.

这篇关于电子邮件确认与MVC 5和Asp.net身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆