Last post Aug 15, 2012 03:11 PM by Saravananvam
Jun 24, 2012 07:41 AM|DiwakarG|LINK
I have been given a requirement such as,
User should be able to enter his PAN card Number Or Security Answer which he entered during registration for Password recovery..
By default, PasswordRecovery template uses Security Answer to reset a password. Is it possible to change that as i said above??
Jun 24, 2012 05:03 PM|Ruchira|LINK
You can implement your custom method to verify the PAN card number and invoke MembershipUser.ChangePassword() method to change the password. Something
public void customMethod(string pan)
//Query the DB and get the username by PAN
var user = Membership.GetUser(userName);
tempPass = user.ResetPassword();
My Tech blog | My YouTube Channel
Jun 25, 2012 06:26 AM|DiwakarG|LINK
Hope you didnt get my question.
The code you've given is for checking the PAN card detail in addition to security answer. But While putting PasswordRecovery, We need to have QuestionTemplate which verfies the Security Answer by default.(Which is mandatory). I need to have that event as
optional in the way that,
If(PanCard is correct)
//Send a password recovery mail
else if(security answer is correct)
//send recovery mail
Hope now clear?
Jun 25, 2012 09:10 AM|Ruchira|LINK
If you implement the QuestionTemplate, you can't make that optional. Then you may have to use your custom control instead of the PasswordRecovery
Jun 28, 2012 08:11 AM|niceastham|LINK
As best practice and for security reasons, you passwords should not be recoverable. They should be one way hashed!
Then you can use the security questions to verfiy the user is correct before allowing them to reset the password or reset it using the system.
Aug 15, 2012 03:11 PM|Saravananvam|LINK
Anyone have solution for this issues?