Login to One Porch Inspections
function validateLogin() { let userEmail = document.getElementById(“email”).value.trim(); let userPassword = document.getElementById(“password”).value.trim();
let user = allowedUsers.find(u => u.email === userEmail && u.password === userPassword);
if (user) {
localStorage.setItem(“authenticated”, “true”);
window.location.href = “oneporchinspect.com/landing”;
} else {
alert(“Access Denied. Incorrect email or password.”);
}
}