I am building an application in which only admin can add student or teacher.I dont want anyone register as a student or teacher. I am using asp.net core 8.0 along with entity framework core. I add identity. Then i delete the register.cshtml and register.cshtml.cs both file and also delete the register button in the view. but if i know the link “https://localhost:7044/Identity/Account/Register?returnUrl=%2F” of the register page then i can register. How to solve this problem?
I want completely remove the registration even someone know the register link they also cant register.