[英].Net Core 3.1 MVC Authentication Individual User Accounts and Scaffold Identity in ASP.NET Core projects
Following this guide:遵循本指南:
Introduction to Identity on ASP.NET Core ASP.NET内核上的Identity介绍
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-3.1&tabs=visual-studio https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-3.1&tabs=visual-studio
Scaffold Identity in ASP.NET Core projects ASP.NET 核心项目中的脚手架标识
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-3.1&tabs=visual-studio https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-3.1&tabs=visual-studio
If I run the app, and click on the "Register" link from the navbar, it redirects to: https://localhost:44397/Identity/Account/Register but if I try to create a new account and register如果我运行该应用程序,然后单击导航栏中的“注册”链接,它会重定向到:https://localhost:44397/Identity/Account/Register 但如果我尝试创建一个新帐户并注册
I get This page isn't working If the problem continues, contact the site owner.
我收到此页面无法正常工作 如果问题仍然存在,请联系网站所有者。 HTTP ERROR 400 The same applies to the Login page
HTTP ERROR 400 同样适用于登录页面
Usually,the simplest steps to create a scaffolding project are as follows.通常,创建脚手架项目的最简单步骤如下。
1:Create a new project then change the Authentication: 1:创建一个新项目,然后更改身份验证:
2:Click the project Add and then click New Scaffolded Item. 2:单击项目添加,然后单击新建脚手架项目。
3:Chooes Identity then add: 3:选择身份然后添加:
4:Override all files and choose the context as ApplicationDbContext then add 4:覆盖所有文件并选择上下文作为ApplicationDbContext然后添加
5:Migration and run project.Register first and then log in 5:迁移并运行项目。先注册再登录
im sorry cant find identity scaffolding item in project asp.net 6 mvc.Could show me how to setting(install) it in program.cs and data.cs?对不起,在项目 asp.net 6 mvc 中找不到标识脚手架项目。可以告诉我如何在 program.cs 和 data.cs 中设置(安装)它吗? Thanks
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.