Final Product

This commit is contained in:
Gnarwhal 2021-02-19 15:49:24 -05:00
parent a8cf583569
commit a9f44c29af
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
48 changed files with 3908 additions and 581 deletions

View file

@ -1,7 +1,7 @@
window.addEventListener("load", async (loadEvent) => {
await loadCommon();
if (session && session.key) {
if (session.key) {
window.location.href = '/';
}
@ -20,7 +20,7 @@ window.addEventListener("load", async (loadEvent) => {
const header = document.querySelector("#login-header-text");
const error = document.querySelector("#error-message");
if (session) {
if (!session.key && session.id) {
error.style.display = "block";
error.textContent = "You have been signed out due to inactivity";
}