<script type="text/javascript">
var password = "solarwinds123";
var pin = 1234;
var inputPassword = prompt("Input your password:");
var inputPin = prompt("Input your PIN:");
function passCheck(){
if (inputPassword == password && inputPin == pin){ //The && ensures that both the pin AND the password match
alert("Access granted!");
} else {
alert("Access denied!");
}
}
passCheck();
</script>