I ran into a situation where I needed to regain access to a site using ASP.NET membership security, but I'd lost the passwords to the user accounts, the security questions were not implemented, and the password reset email did not work either. This article from StackOverflow helped regain access to the site.
http://stackoverflow.com/questions/287320/how-do-you-change-a-hashed-password-using-asp-net-membership-provider-if-you-don
http://stackoverflow.com/questions/287320/how-do-you-change-a-hashed-password-using-asp-net-membership-provider-if-you-don
MembershipUser u = Membership.GetUser();
u.ChangePassword(u.ResetPassword(), "myAwesomePassword");
Comments
Post a Comment