I have a website with Roles and Memberships enabled.
When a user has a hashed password the following code works:
public void ChangePassword_OnClick(object