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

ぃ、小莉子 提交于 2019-12-23 01:13:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!