Search code examples
asp.net-corevisual-studio-2019asp.net-core-identity

Where Can I Find Views and codes of Login and register pages Created by Identity


I have just created an ASP.NET Core Mvc project with Identity support using Visual studio 2019. There are built in Login/Register Pages. But I cant find their source code and cshtml. It uses Areas but looking at this documentation Areas in ASP.NET Core I couldn't find the explanation.

I need to customize the Login/Register views and their functionality. Where can I find them?


Solution

  • Please note that ASP.NET Core provides ASP.NET Core Identity as a RCL.

    To modify the code/view(s) and change the default behavior, you can refer to the following doc to apply the scaffolder to selectively add the source code contained in the Identity RCL, then you can customize the generated code based on your actual requirement.

    https://learn.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-5.0&tabs=visual-studio