[Solved] want to verify username and password using javascript


Use a for loop on the email and password array. For example:

var correct = false;
for (int i = 0; i <= emailArray.length; i++)
{
  if (emailTextBoxValue != emailArray[i])
  {
    //the email at [i] isn't valid
  }
  else
  {
    if (passwordTextBoxValue == passwordArray[i])
    {
      correct = true;
    }
    else
    {
      //the password at [i] isn't valid
    }
  }
}
if (!correct)
{
//Credentials are wrong
}
else
{
//Credentials are right
}

Just a quick warning, this will be the most insecure system possible. If someone opens developer tools, they can instantly see your credentials

2

solved want to verify username and password using javascript