I am trying to go through the below tutorial
http://www.asp.net/security/tutorials/an-overview-of-forms-authentication-cs
Although I enter the correct user id and password iam seeing the USername and password are incorrect message. What is wrong?
protected void LoginButton_Click(object sender, EventArgs e)
{
// Three valid username/password pairs: Scott/password, Jisun/password, and Sam/password.
string[] users = { "Scott", "Jisun", "Sam" };
string[] passwords = { "password", "password", "password" };
for (int i = 0; i < users.Length; i++)
{
bool validUsername = (string.Compare(UserName.Text, users[i], true) == 0);
bool validPassword = (string.Compare(Password.Text, passwords[i], false) == 0);
...
Go to the complete details ...