Last Updated: February 25, 2016
·
297
· codemonkeh

Change a Membership password

Add the below code into any page replacing the username and password.

var user = Membership.GetUser("UserName");
user.ChangePassword(user.ResetPassword(), "NewPassword");