Microsoft Visual Studio Projects DISCUSSION

System.Web.Security.MembershipUser.ChangePasswordQuestionAndAnswer Is encrypting PasswordAnswer

Started by syedzainnasir System.Web.Security.MembershipUser.ChangePasswordQuestionAndAnswer Is encrypting PasswordAnswer
0 replies 248 views 1 participants
Latest activity · 07 Mar 2017

System.Web.Security.MembershipUser.ChangePasswordQuestionAndAnswer Is encrypting PasswordAnswer

syedzainnasir Microsoft Visual Studio Projects Forum
#1
I’ve been using the System.Web.Security.MembershipUser.ChangePasswordQuestionAndAnswer method for several years and all has been fine. Now today something strange started happening. When I pass in the 3 parameters (password, passwordQuestion and passwordAnswer), the passwordAnswer appears to be encrypted when I view it in the sql aspnet_Membership table. For example, if I run this line of code:

user.ChangePasswordQuestionAndAnswer(“myPassword”, “myPet”, “dog”);

These are the values stored in the aspnet_Membership table:
Password = “myPassword”
PasswordQuestion = “myPet”
PasswordAnswer = “n51Do4TY8pYTAzyenYDe9d46Kjyc8oEbYbf4CRMzlE8=”

But I’m expecting PasswordAnswer to be “dog”.
Can anyone shed some light on what might be happening here?

everytime I used this in the past, PasswordAndwer would be "dog" in the aspnet_Membership table.

Additionaly, in the web.config file the SqlProvider passwordFormat attribute has always been set to "Encrypted" so this has not changed. Something else must have changed to cuase the PasswordAnswer to start encrypting.

Thank you.

Community replies 0

Be the first to help

There are no replies yet.

TEP COMMUNITY