Is it possible to implement a "for开发者_如何学Pythongot password" using ASP.Net membership provider?
Any sample link is appreciated.
Thanks
Use PasswordRecovery control or You can call GetPassword() or ResetPassword() methods on your membership provider.
The best solution I've seen so far is to reset it as follows:
MemberShipUser user = MemberShip.GetUset("someUserName");
user.ChangePassword(user.ResetPassword(), "new-password-word");
This is very handy especially if your passwords are hashed.
精彩评论