Fixed an error where we were still checking for null passwords (an unsupported feature)

This commit is contained in:
Taylor Courage 2025-03-06 06:42:41 -05:00
parent b2d27837ac
commit cb1eb98501

View File

@ -33,9 +33,8 @@ function verifyInput() {
} }
var password = document.forms["userForm"]["password"].value; var password = document.forms["userForm"]["password"].value;
// Ensure the password is at least 6 characters in length
// Ensure the password (if enabled) is at least 6 characters in length if (password.length < 6) {
if (!(document.getElementById("none").checked) && password.length < 6) {
alert ("Password must have a minimum length of 6 characters."); alert ("Password must have a minimum length of 6 characters.");
return false; return false;
} }