Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am making a windows application in .NET using c# (like management system).i need to enter username and password for login .And i wants that if any user forget password then software will send his new password at his e-mail id.
how is this possible?
if anyone know this please send me whole information with code at these e-mails,
xxxxxxxxxxx
Posted
Updated 3-Dec-11 2:57am
v2
Comments
Abhinav S 3-Dec-11 8:58am    
Removed email ids.
Richard MacCutchan 3-Dec-11 9:13am    
I think stupid and/or lazy questions deserve to have the email ids left in them.
[no name] 3-Dec-11 21:19pm    
you should google this one. try searching for SMTP

Bad, bad idea. To send the user his password, you have to store it in a readable form. This means that any hack gets access to everything - potentially including other systems given that most people only use one or two passwords for everything. Instead, store the password as a hash value and reset it to a random value then send that to the registered email instead. There is some detail on how to do that here: Password Storage: How to do it.[^]
 
Share this answer
 
I agree with
Quote:
iginalGriff336K
about the password storage.

If your using windows applicaiton then you must windows authentication provided in .net.
Get more information about windows authentication from here:
Windows Authentication[^]
When your are using Windows authentication the passwords are stored in your Active Directory. To known more information about active directory you can refere the below article:
Howto: (Almost) Everything In Active Directory via C#[^]
 
Share this answer
 
v2

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