Last post May 13, 2019 06:35 AM by Sherry Chen
May 10, 2019 11:31 PM|johnjohn123123|LINK
I have created a new asp.net core 2.2 web application MVC, and i select to use the individual accounts for authentication. now when i run the application >> click on register >> i will be redirected to this URL
https://localhost:44306/Identity/Account/Register. now as i understand the "Identity" is an area + "Account" is a controller + "Register" is an action method. but i am unable to access the "Account" controller and its actions methods and views.
I am asking because i want to do some modification to the business login for the register/login and other built-in functionalities inside asp.net core authentication.
second question. since the Account is an automatically generated controller for us, then is it recommended/advisable to modify its business login and its view to match our needs? or modifying these can result in overriding these modifications if we chose
to upgrade our project or upgrade our identity in the future ? as a general note in development we should not modify auto generated code, as our code might be overridden if we upgrade our project,, so does this apply to modifying the "Account" Controller inside
our asp.net core?
May 11, 2019 11:01 AM|mgebhard|LINK
See your similar thread.
May 13, 2019 06:35 AM|Sherry Chen|LINK
Hi johnjohn123123 ,
Scaffold Identity is using Razor Pages not MVC structure in asp.net core 2.1+ , so
"/Identity/Account/Register" means "/AreaName/PageFolderName/RazorPages".
scaffolder identity into your project , you could select the files that need to override .
About modifying the default identity UI and the changes in upgrades between project version, you could refer to the below links :
Best Regards ,