简体   繁体   中英

How to get security question answer in .net sql membership provider?

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?

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() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM