Skip to content

Instantly share code, notes, and snippets.

@bestpika
Last active April 22, 2016 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bestpika/26d6b113d1c375e2a0b9 to your computer and use it in GitHub Desktop.
Save bestpika/26d6b113d1c375e2a0b9 to your computer and use it in GitHub Desktop.
登入
<configuration>
<appSettings>
<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.6" />
<httpRuntime targetFramework="4.6" />
<roleManager enabled="true" cacheRolesInCookie="true" />
<urlMappings enabled="true">
<add mappedUrl="Login.aspx" url="~/Account/Login" />
</urlMappings>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" defaultUrl="Default.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment