|
復(fù)制代碼 代碼如下:
<connectionStrings>
<add name="SqlServices" connectionString="server=.;database=data;uid=sa;pwd=123;" />
</connectionStrings>
復(fù)制代碼 代碼如下:
<membership defaultProvider="SqlProvider" userIsOnliNETimeWindow="15">
<providers>
<clear/>
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SqlServices"
applicationName="dev"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
passwordFormat="Hashed"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
/>
</providers>
</membership>
重設(shè)密碼關(guān)鍵語(yǔ)句:
復(fù)制代碼 代碼如下:
MembershipUser mem = Membership.GetUser(this.lblUserName.Text);
string p = mem.ResetPassword();
mem.ChangePassword(p, "123456");
AspNet技術(shù):asp.net membership 密碼重設(shè),轉(zhuǎn)載需保留來(lái)源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。