mark
mark
Mimic Customer Portal Mimic Customer Portal

Mimic Customer Portal

Login

function validateLogin() {
// Replace these with your own credentials
const validUsername = ‘testuser’;
const validPassword = ‘password123’;

const username = document.getElementById(‘username’).value;
const password = document.getElementById(‘password’).value;
const errorMessage = document.getElementById(‘errorMessage’);

if (username === validUsername && password === validPassword) {
// Redirect to the protected content
window.location.href = ‘/protected-content’;
} else {
errorMessage.textContent = ‘Invalid username or password.’;
}
}