ASP.Net Core 2.1 中的标识<

编程入门 行业动态 更新时间:2024-10-12 05:52:53
本文介绍了ASP.Net Core 2.1 中的标识<- 自定义 AccountController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经安装了 ASP.NET Core 2.1 但即使我已经使用 ASP.NET Core 2.1 创建了一个新的 ASP.NET Core Web 应用程序code> with Individual User Accounts → Store user accounts in-app 我找不到 AccountController 或 Views.

I have installed ASP.NET Core 2.1 but even though I have created a new ASP.NET Core Web Application using ASP.NET Core 2.1 with Individual User Accounts → Store user accounts in-app I can't find the AccountController or Views.

我仍然可以毫无问题地注册和登录,但我找不到它的代码,它存在于 2.0.0 中.

I can still register and login without a problem but I can't find the code for it, it were present in 2.0.

推荐答案

2.1 中的更改 是 Razor 类库,默认身份位于单个身份验证模板中的其中之一.如果您希望在您的应用程序中包含代码以便您可以对其进行自定义,您可以使用 Visual Studio 或全局脚手架工具将其搭建起来.请参阅 本指南关于如何做到这两点.

One of the changes in 2.1 was Razor Class Libraries and the default identity lives in one of these in the individual auth templates. If you would like to have the code in your app so you can customise it, you can scaffold it out with Visual Studio, or with the global scaffolder tool. See this guide on how to do both.

更多推荐

ASP.Net Core 2.1 中的标识<

本文发布于:2023-11-14 03:59:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586155.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标识   Net   ASP   Core   lt

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!