Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too.
Is this possible ? if so can anyone suggest any ways to do this or any tutorials please ?
This is what i used to get the Windows identity of the user currently logged in.
System.Security.Principal;
public partial class CLogin : Form
{
public void getName()
{
string name = WindowsIdentity.GetCurrent().Name.ToString();
textBox1.Text = name;
}
}