LOGIN給我們帶來了方便,以下為個人的一點整理
<connectionStrings>
<!--用戶登錄控件相關 ASPnet_regsql 命令即可 -->
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=.;Initial Catalog=SimpleOA;Persist Security Info=True;User ID=sa;PassWord=luxin145" providerName="System.Data.SqlClIEnt" />
<add name="SimpleOAConnectionString" connectionString="Data Source=.;Initial Catalog=SimpleOA;Integrated Security=True" providerName="System.Data.SqlClIEnt"/>
</connectionStrings>
<system.web>
<!--更改login控件對密碼安全性的要求-->
<membership>
<providers>
<remove name="ASPNetSqlMembershipProvider"/>
<add name="ASPNetSqlMembershipProvider"
type=" System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePassWordRetrIEval="false"
enablePassWordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passWordFormat="Hashed"
maxInvalidPassWordAttempts="5"
minRequiredPassWordLength="6"
minRequiredNonalphanumericCharacters="0"
passWordAttemptWindow="10"
passWordStrengthRegularExpression="" />