The concept is to use one provider for password reset and one provider for every other function in your site.
And the code becomes like this:
Vb.Net Code:
Dim user As MembershipUser
user = Membership.GetUser(username)
Dim oldpass As String = user.ResetPassword
user.ChangePassword(oldpass, newpassword)
C# Code:
MembershipUser user = Membership.GetUser(username);
string oldpass = user.ResetPassword;
user.ChangePassword(oldpass, newpassword);
Hope you find it useful!
Wednesday, August 18, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment