Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi In my project there is option for forgot password.When user will click on Forgot Password then new page is open and it will ask security question if he answer correct then his old password will be mail to his mail id. but in my database password is in encrypt format. and when it mailing to user in same(encrypt) format. now i want what i should do.can i dcrypt then mail to the user or create new password update in database then mail to user.Please Help me.I'm using asp.net3.5(C#) and Sql server 2008 (Stored Procedure).
Posted
Comments
RaviRanjanKr 15-Jan-11 2:47am    
If So then why don't you decrypt user old Password before sending mail to user.

1 solution

Create a temporary password save in the database, and send a link to the user to login using the new password, and ask him to reset his password on next login.
 
Share this answer
 

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