- 使用 Login 控制項
- 登入事件為 OnAuthenticate
Last active
April 22, 2016 08:48
-
-
Save bestpika/26d6b113d1c375e2a0b9 to your computer and use it in GitHub Desktop.
登入
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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