-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPasswordRequired.html
More file actions
38 lines (29 loc) · 1.23 KB
/
Copy pathPasswordRequired.html
File metadata and controls
38 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Required to Continue</title>
</head>
<body>
<h1>EBoard Members-Only</h1>
<p>Please enter the password to access mass emailer:</p>
<!-- Password input -->
<label for="password">Password:</label>
<input type="password" id="passwordInput" required>
<button onclick="checkPassword()">Submit</button>
<div id="errorMessage" style="color: red; display: none;">Incorrect password, please try again.</div>
<script>
// Replace 'your_password' with the correct password
const correctPassword = "allanSmells"; //yo apparently this password is super hard to guess for even the smartest of computers.
function checkPassword() {
const enteredPassword = document.getElementById("passwordInput").value;
if (enteredPassword === correctPassword) {
window.location.href = 'emailer.html';
} else {
document.getElementById("errorMessage").style.display = "block";
}
}
</script>
</body>
</html>