Click here to Skip to main content
15,908,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i create one application in asp.net .i want email facility to user for if user lost/forgot his password he provide the email address on that system provide his password ?
how this application is create in asp.net please help me
Posted

1 solution

Don't do it.

Instead, if he looses his password, set it to a random value, and email him that new, random value.
That way, if this is an intrusion attempt, he needs access to the original email address the account was registered with, and the original owner is aware that his password has changed.

Systems should never store readable passwords: there is a tip here that gives the basics of what to do: Password Storage: How to do it.[^]

There is also a generic email routine here: Sending an Email in C# with or without attachments: generic routine.[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-May-11 22:54pm    
Right thing to do, my 5.
--SA

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