使用 MVC 5 和 Asp.net Identity 进行电子邮件确认 [英] Email Confirmation with MVC 5 and Asp.net Identity

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

问题描述

我一直在搜索,但没有找到任何关于如何使用新的 ASP.net 标识通过 MVC 5 实现电子邮件确认的文档.似乎没有关于此主题的任何文档(我可以找到).

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.

非常感谢任何指导.

谢谢

推荐答案

我已经写了一个 关于如何在使用 ASP.NET Identity 时添加电子邮件确认的分步文章.您可以在项目文件夹 AspNetIdentityAspNetIdentityRefApp在此处获取源代码.我还创建了一个封装 ASP.NET Identity 的服务层,使其更容易集成到新的 MVC 5 应用程序中,并模仿 SimpleMembership 使用的 WebSecurity API.您可以从 AspNetIdentitySimpleSecurity.AspNetIdentity 获取该类库.在 AspNetIdentitySimpleSecurity.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 AspNetIdentityAspNetIdentityRefApp. 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 AspNetIdentitySimpleSecurity.AspNetIdentity There is also reference app for using this library in AspNetIdentitySimpleSecurity.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 Identity 进行电子邮件确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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