9. Change the password's changepassword Control
Use it to change the password.
<Asp: changepassword id = "changepassword1" runat = "server">
</ASP: changepassword>
You can change the password without setting it.
{
If (! This. resized) {return false;} else {window. Open ('attachments/2007/4/27/changepassordjc3_4226y6jebmuw.gif ');}
} "Src =" http://www.blueidea.com/articleimg/2007/04/4676/changepassordjc3_4226Y6JebMUW.gif "alt =" "width =" 418 "Height =" 229 ">
10. Self-Help password retrieval passwordrecovery Control
What should I do if I forget my password? I can retrieve it myself! However, Web. config has to be configured before. Create a system.net node on the same-level node in system. Web. The details are as follows:
<System.net>
<Mailsettings>
<SMTP deliverymethod = "network" from = "* @ 126.com">
<Network defaultcredentials = "false" host = "smtp.126.com" Password = "*" Port = "25" username = "* @ 126.com"/>
</SMTP>
</Mailsettings>
</System.net>
We used a mailbox of 126, and the username and password were omitted. Create passwordrecovery. aspx and place it in the passwordrecovery control.
<Asp: passwordrecovery id = "passwordrecovery1" runat = "server">
</ASP: passwordrecovery>
Test:
{
If (! This. resized) {return false;} else {window. Open ('attachments/2007/4/27/changepassordjc3_4226y6jebmuw.gif ');}
} "Src =" http://www.blueidea.com/articleimg/2007/04/4676/passrecoverysx4_PsK8WBnSt4r1.gif "alt =" "width =" 436 "Height =" 177 ">
{
If (! This. resized) {return false;} else {window. Open ('attachments/2007/4/27/changepassordjc3_4226y6jebmuw.gif ');}
} "Src =" http://www.blueidea.com/articleimg/2007/04/4676/passrecoverystep2oe0_7ZIxsoP1aZ6e.gif "alt =" "width =" 449 "Height =" 213 ">
{
If (! This. resized) {return false;} else {window. Open ('attachments/2007/4/27/changepassordjc3_4226y6jebmuw.gif ');}
} "Src =" http://www.blueidea.com/articleimg/2007/04/4676/passrecoveryfinishedmj0_2oLCsNYx6odc.gif "alt =" "width =" 418 "Height =" 143 ">
Open the email address you entered during registration.
{
If (! This. resized) {return false;} else {window. Open ('attachments/2007/4/27/changepassordjc3_4226y6jebmuw.gif ');}
} "Src =" http://www.blueidea.com/articleimg/2007/04/4676/007.jpg "alt =" "width =" 510 "Height =" 263 ">
We can use the new password to log on to the site.
11. Conclusion
Before the contact, membership felt mysterious. After the contact, it was not difficult to understand and cooperated perfectly with the login control series. If you want to quickly build a user management platform, this is a good choice, and is the first choice for scammers.
If you suspect that the MS control is too ugly and does not matter, because it has a variety of templates, You can implement the interface you want to see through custom templates.
However, membership is designed to suit most situations. Therefore, it is also a kind of golden oil practice, which may not fully match the features you want. However, let's take a look at its practice, isn't it a good thing to learn about its database design?
Classic forum discussion:
Http://bbs.blueidea.com/thread-2740354-1-1.html
Link: http://www.blueidea.com/tech/program/2007/4676.asp