I made this tutorial and everything works just fine. But is it possible to use more than one password or not? I tried this:
password = inputName;
if (password == “kirupa”) {
answer = “kirupa is ok!”;
} else {
answer = “Access denied!”;
}
if (password == “lampe”) {
answer = “lampe is ok!”;
} else {
answer = “Access denied!”;
}
but what happened was this: if i fill in “kirupa”, i get acces denied. If i fill in “lampe”, it works (i get “lampe is ok!”).
Is it possible to use two or more passwords?