Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
Resetting Password with ASP.NET 2.0 Membership
3.9.2007 20:49:36 - Filed under : Asp.net
If you ever have wanted to be able to programmatically change (reset) a users password while at the same time continuing to be able to use the question and answer feature, this post is for you.  The problem is that if you use code like this:
string username = “user”;
string password = “pass@word”;
MembershipUser mu = Membership.GetUser(username); 
mu.ChangePassword(mu.ResetPassword(), password);
PS :You will find that if you have in your web.config requiresQuestionAnswer="true", you will get an error when you try and reset the password.

Keywords : reset password, membershipuser, change password
with 0 comments

What do you think ?
Security Code 71
Check S. Code
Name  
Email  
Home Page  
Comments