How to change hasehd password if you don't know the current password using asp.net membership provide ?

Many programmers stuck into above problem. the solution is reset the password randomly and pass that into the change method.

 

MembershipUser u = Membership.GetUser();
u.ChangePassword(u.ResetPassword(), "myAwesomePassword");




Enjoy !!!

Posted in | 0 comments