Skip to content

Commit

Permalink
fix: redirection to welcome template fix (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Hammad-Faisal authored Jan 31, 2025
1 parent 5df8ee2 commit 64ea669
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions login/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ document.getElementById("show-login")?.addEventListener("click", function () {
});

document.getElementById("logout")?.addEventListener("click", function () {
window.location.href = "/login/index.html";
window.location.href = "index.html";
rotateContainer();
});

Expand All @@ -48,7 +48,7 @@ document
if (username === "John" && password === "Doe") {
document.getElementById("login-error").textContent = "";
document.getElementById("login-error").style.display = "none";
window.location.href = "/login/welcome.html";
window.location.href = "welcome.html";
rotateContainer();
} else if (username === "" || password === "") {
document.getElementById("login-error").style.display = "flex";
Expand Down Expand Up @@ -82,7 +82,7 @@ document
} else {
document.getElementById("signup-error").textContent = "";
document.getElementById("signup-error").style.display = "none";
window.location.href = "/login/welcome.html";
window.location.href = "welcome.html";
rotateContainer();
}
});

0 comments on commit 64ea669

Please sign in to comment.