Last Updated: February 25, 2016
·
299
· 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");