How to get QuestionAnswer using ASP.NET Membership

I am wondering if it is possible for me to get the QuestionAnswer field from the ASP.NET membership the same way you can get the UserName and PasswordQuestion.

MembershipUser mu = Membership.GetUser(userId);
string username = mu.UserName;
string question = mu.PasswordQuestion;

      

0


a source to share


1 answer


I'm pretty sure QuestionAnswer is hashed in the database in the same way as the password. If so, then you won't be able to get QuestionAnswer in any human-readable format (although if you need QuestionAnswer in that format, you can always run a regular SQL query against the table, rather than using the membership API).

If necessary, you can always change the question and answer the question



Hope it helps.

0


a source







All Articles