I am C # code (ASP.NET) and I use forms authentication.
I would like to know which of the best ways to change a user password without using asp: ChangePassword.
I do not want to use the reset password method.
I just want to get the password that I have in my text box and replace it with the old password.
Please note that in my password that I use is the passwordFormat = "Hashed"
Some code snippets would be helpful.
Edit:
In my web.config, I set enablePasswordRetrieval = "false"
I used the following method
var myUser = Membership.GetUser(userID); bool isChangeSuccess = myUser.ChangePassword( myUser.GetPassword(), ActivateUserPasswordText.Text.Trim());
It gives me an error
This ISP has not been configured to support password searches.
What can be done to solve these problems? I would really like my PasswordFormat to be a hash.
Yours faithfully,
Naveen jose
naveen
source share