Click here to Skip to main content
12,294,775 members (58,741 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 14-Jan-11 20:27pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160525.2 | Last Updated 15 Jan 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100