Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the default `AccountController` in .NET Core 2.2

When creating a new .NET Core 2.1 web project with individual authentication, the project will be created with AccountController and ManageController alongside it.

The command is:

dotnet new mvc --auth Individual

However, where can I find the default AccountController and ManageController in .NET Core 2.2 new project? I need to modify my default login logic.

like image 765
Anduin Avatar asked Oct 16 '25 15:10

Anduin


1 Answers

By default you cannot because from ASP.NET Core 2.1 Identity is being provided as Razor Class Library with the ASP.NET Core project templates. If you want to see those Identity related codes and customize then you have to Scaffold Identity in your project.

Moreover if you need ASP.NET Core Identity in MVC format then here is my GitHub Repository where Razor Page Identity has been converted to MVC in ASP.NET Core Version >= 2.2.

like image 140
TanvirArjel Avatar answered Oct 18 '25 05:10

TanvirArjel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!