I am coding an application and I would like to give the admin a way to reset a password. The closest I have come to this is the following:
public abstract string ResetPassword(string username, string answer);
But this requires I know the answer.
With the .NET MembershipProvider how can I simply reset a password to something else? The only way I can think to do this is to delete the user and recreate.
Do you implement your custom MembershipProvider? if so set RequiresQuestionAndAnswer to false and you will not need to provide the answer in ResetPassword.