Fixed getElementById method being called on incorrect object causing looping failure.

This commit is contained in:
Jack Walker
2020-07-06 12:44:19 +10:00
parent 9458bd8fc6
commit a92d4d910c
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ beef:
# Used by both the RESTful API and the Admin interface
credentials:
user: "beef"
passwd: "beef"
passwd: "beef1"
# Interface / IP restrictions
restrictions:

View File

@@ -93,9 +93,9 @@ beef.execute(function() {
$j('#popup').remove();
$j('#darkenScreenObject').remove();
}else if((uname1.length == 0 || pass1.length == 0) && valcheck == "true"){
} else if((uname1.length == 0 || pass1.length == 0) && valcheck == "true") {
// If user has not entered any data, reset button
document.body.lastChild.getElementById("buttonpress").value = "false";
document.getElementById("buttonpress").value = "false";
alert("Please enter a valid username and password.");
}
}