gpt4 book ai didi

c# - 使用 MVC 5 和 Asp.net Identity 的电子邮件确认

转载 作者:IT王子 更新时间:2023-10-29 04:09:46 26 4
gpt4 key购买 nike

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

有人解决了吗?我很惊讶默认 MVC 5 项目中没有默认包含它。

非常感谢任何指导。

谢谢

最佳答案

我写了一个step-by-step article on how to add email confirmation when using ASP.NET Identity .你可以get the source code here在项目文件夹 AspNetIdentity\AspNetIdentityRefApp 中。我还创建了一个封装 ASP.NET Identity 的服务层,使其更容易融入新的 MVC 5 应用程序并模仿 SimpleMembership 使用的 WebSecurity API。您可以从 AspNetIdentity\SimpleSecurity.AspNetIdentity 获取该类库 AspNetIdentity\SimpleSecurity.AspNetIdentity.RefApp 中还有使用该库的引用应用程序。类库和引用应用程序还展示了如何在 Web API 上使用 token 和基本身份验证实现密码重置。

关于c# - 使用 MVC 5 和 Asp.net Identity 的电子邮件确认,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19295236/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com