Customize Login Page design for Authentication type : Individual User account ASP.NET core 2.1, MVC, c#

Deadly 提交于 2019-12-12 07:06:58

问题


I'm trying to implement OAuth2.0 for my web application. I have done that following this link.

I have registered with 2 external providers Microsoft and google. I have added Authentication in startup.cs file as well.

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.

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. I have searched for a couple of hours now and couldn't find anything.

Any help is highly appreciated.Many thanks in advance.

EDIT


回答1:


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.

The login.cshtml pages were created in the Areas/Identity/Pages/Account directory.



来源:https://stackoverflow.com/questions/54995474/customize-login-page-design-for-authentication-type-individual-user-account-as

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!