Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have used web site administration tool in asp.net to make user.My question is if a user forget the password and want to get back through email, how can i implement this using gmail.
Posted

1 solution

In general it's considered bad form to store the password in plaintext or in 2-way encrypted format. If a user forgets his password he should be sent a link to reset his password. His password should not be stored in a manner where it can be extracted nor should it under any circumstances be sent via plain text email.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Oct-11 12:48pm    
True, my 5. It leaves for explanation how password reset mechanism can work safely.
--SA
Nish Nishant 25-Oct-11 14:36pm    
Thanks SA.
Tech Code Freak 25-Oct-11 14:10pm    
In what form must we store the password in the database?
Should we encrypt it before storing too?
Nish Nishant 25-Oct-11 14:36pm    
Should not be stored at all except as a hash of some form.
Tech Code Freak 26-Oct-11 2:34am    
Thanks for the info! My 5up!

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