Skip to content

Commit

Permalink
post-login test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ManWithACap committed May 12, 2024
1 parent b7f4ce9 commit 39ef73b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pages/jack.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>

</head>
<body>
<h1>Jack</h1>
</body>
</html>
9 changes: 9 additions & 0 deletions pages/nolan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>

</head>
<body>
<h1>Nolan</h1>
</body>
</html>
9 changes: 9 additions & 0 deletions pages/zach.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>

</head>
<body>
<h1>Zach</h1>
</body>
</html>
2 changes: 1 addition & 1 deletion scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ document.getElementById('loginForm').addEventListener('submit', async function(e
});

if (authenticatedUser) {
alert('Login successful!');
window.location.href = "./pages/nolan.html";
} else {
document.getElementById('error').textContent = 'Invalid username or password';
}
Expand Down

0 comments on commit 39ef73b

Please sign in to comment.