Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I have a below requirment in my web application.

I want to implement password history functionality in my application.
So that user can not use old password again to create new password.


Pls help if any solution.
Posted

1 solution

Hello Shashikant,

You can definitely do so by implementing a custom membership provider. The default SQLMemberShipProvider doesn't seems to have this functionality. Please have a look at following articles, which should get you started.

Regards,
 
Share this answer
 
Comments
Pro86 7-Nov-13 1:43am    
i have six column in password history table like pass1,pass2,pass3 .....
how i can store new password every time in table
Prasad Khandekar 7-Nov-13 10:45am    
A very simple way in your case is to keep a column containing the column counter. When it's one you will set the password in pass1 and then increment the counter by 1. if it is greater than equal to 6 then you will rest it to 1.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900