There are netizens asked the question of authority, in fact, I think there is no improvement.
The Web. config under the home directory is basically not changed. If you want to change it, only the database is connected.
<authentication mode= "None"/>
<compilation debug= "true" targetframework= "4.5.2"/>
These two I did not change, supposedly <authentication mode= "None"/> should be changed to <authentication mode= "Forms"/> But I used to change and not change no difference.
Moreover, when the project was established, you should have chosen, the project template production when this is not moving. I personally think this is a decoration.
Other WebForm use directory permissions, so the rest is to set the directory's access permissions in each directory (the directory has a Web. config file). To tell the truth, this is all very basic knowledge.
This is the content of Web. config under my Admin folder
<?xml version="1.0"?><configuration> <location path=" ~/account/login.aspx"> <system.web> <authorization> <allow roles = " Admin "/>//Allow Admin role access only <deny users ="*"/> //Deny all users </authorization> </system.web> </location></configuration>
All other directories can be set according to your permission schema.
ASP. NET identity 2.2.0 role enablement and basic use under WebForm (iv)