Last post Jul 08, 2019 02:29 PM by BolligeA1
Jul 06, 2019 09:46 PM|BolligeA1|LINK
In my Asp.Net Core 2.2 Web Application, I would like to disable the default activated opportunity to register a new user. I used the default template which implements Identity and it all works just would like for security reasons for now to prevent Registration.
There is now code in my solution other than the _LoginPartial.cshtml where I removed the register link but the problem it can still be accessed via url: https://www.xxxx.com/Identity/Account/Register
Thanks, I would appreciate any help greatly, kind blessings, Andreas
Jul 06, 2019 11:06 PM|mgebhard|LINK
The ASP.NET Core 2.2 template uses a Razor Class Library (RCL) which is a DLL. Scaffold the Identity to make changes to the template code.
Jul 08, 2019 01:52 AM|Xing Zou|LINK
Since you use the individual user account template, you could find all the pages using
Sacffold Identity in Identity Area. If you do not want the registration page, just find the Areas/Identity/Pages/Account/Register.cshtm and delete the razor pages.
Jul 08, 2019 02:29 PM|BolligeA1|LINK
Thanks a lot to both of you, great answers, Problem Fixed, may God bless you both, kind blessings, Andreas