Last post Feb 03, 2021 04:37 PM by micnie2020
Feb 03, 2021 02:35 PM|micnie2020|LINK
How can I reset my secret question password without providing Current password?
I am admin which user forgot her secret password & password.
Feb 03, 2021 02:40 PM|mgebhard|LINK
You'll need to write custom ADO.NET code and not use the Membership API.
Feb 03, 2021 04:37 PM|micnie2020|LINK
I managed to resolved it, example skeleton code for Membership API. This is when user forgot both Question Answer & Password. Admin able to perform the reset & user will request reset using the new password or Secret Answer to proceed further changes.
if (PasswordAnswer.Text != "")
MembershipProvider mp = Membership.Providers["MyMembershipProvider"];
MembershipUser mbrUser = mp.GetUser(membershipUserBeingEdited.ProviderUserKey, true);
string strPassword = mbrUser.ResetPassword();
string strFriendlyPassword = <<you can used random number or anything expression from date>>;