[英]Customize Login Page design for Authentication type : Individual User account ASP.NET core 2.1, MVC, c#
I'm trying to implement OAuth2.0 for my web application.我正在尝试为我的 Web 应用程序实现 OAuth2.0。 I have done that following this link.
我已经按照这个链接做了。
I have registered with 2 external providers Microsoft and Google.我已在 2 个外部提供商 Microsoft 和 Google 上注册。 I have added Authentication in startup.cs file as well.
我也在 startup.cs 文件中添加了身份验证。
So when I run the application, click on Login button on top right corner, a Login page is displayed.The URL it is showing is https://localhost:44325/Identity/Account/Login
.因此,当我运行应用程序时,单击右上角的登录按钮,会显示登录页面。它显示的 URL 是
https://localhost:44325/Identity/Account/Login
。
But I'm unable to find this page anywhere in my solution.但是我无法在我的解决方案中的任何地方找到这个页面。 I want to modify this page's design and want to make this my first page as soon as I open the application.
我想修改此页面的设计,并希望在我打开应用程序后立即将其设为我的第一页。
How do I do it?我该怎么做?
To low to comment so I'll post as an answer, follow the instructions at this answer .为了发表评论,所以我将作为答案发布,请按照此答案中的说明进行操作。
For me I just right-clicked on the project, selected Add -> New Scaffold Item
, picked Identity
on the new dialog, in the left pane, and followed the prompts.对我来说,我只是右键单击该项目,选择
Add -> New Scaffold Item
,在左侧窗格中的新对话框中选择Identity
,然后按照提示进行操作。
The login.cshtml
pages were created in the Areas/Identity/Pages/Account
directory. login.cshtml
页面是在Areas/Identity/Pages/Account
目录中创建的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.