user4833581
user4833581

Reputation: 131

asp.net identity core - there's no controller classes found on my project using vs 2019

asp.net identity core - there's no controller classes found on my project using vs 2019

enter image description here

no account controller was generated so if i need to edit on login/logout etc need to write the logic again from scratsh

enter image description here

but in asp.net mvc5 was different and there were a controller code .

Upvotes: 1

Views: 1141

Answers (1)

Darshani Jayasekara
Darshani Jayasekara

Reputation: 741

In asp.net core identity default application, there are no visible stuff(controllers,views) related to the identity management. You have to add them to your project as Scaffolded items.

Right click on your project then click on "Add" => "Add new Scaffolded Item". Then in "Add new Scaffolded item" screen select "Identity" and click "Add" button. enter image description here

Then in the next UI , you can choose whatever the file you need to modify.

enter image description here

Please note that this scaffolded identity is not using controller concept, they are Razor pages.

Upvotes: 4

Related Questions