Check password answer

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

How can I check, in ASP.NET 2.0 membership, if a given password answer
given by a user is the same as the one in the user record?

Thanks,
Miguel
 
One way is to make the secret question as a profile property (say
SecretAnswer) and then use Profile.SecretAnswer to the user-given value. The
password may not be encrypted while storing in the profile database.

Second option is to use the Membership API (Membership.ValidateUser()).
 
Back
Top