问题
Is there any way to get form code level security question answer in .net SQL Membership Provider? I'm struggling with allowing user to have change password reset and change features using the same provider. Do anybody knows how to do that? Or if I would like to use question and answer feature it means that I automatically have to use security question to change password?
回答1:
MembershipProviders such as SqlMemberShipProvider aren't designed to allow you to retrieve the password answer, only validate it. The method to validate the answer is ResetPassword().
来源:https://stackoverflow.com/questions/2308068/how-to-get-security-question-answer-in-net-sql-membership-provider