From f8c4e1dd2321918428a4217c053e676966d1cbbb Mon Sep 17 00:00:00 2001 From: ygowthamr Date: Mon, 28 Oct 2024 14:01:11 +0530 Subject: [PATCH 1/8] Added redirect functionality when user is not loggedin for protected pages --- login-system/logout.js | 1 - public/allotment.html | 4 ++++ public/choose-file.html | 4 ++++ public/choose-signup-file.html | 4 ++++ public/dashboard.html | 2 +- public/fac_login.html | 4 ++++ public/faculty.html | 4 ++++ public/form_filling.html | 4 ++++ public/login.html | 4 ++++ public/main_page.html | 4 ++++ public/signup.html | 4 ++++ public/stk_dashboard.html | 6 +++++- public/stk_login.html | 4 ++++ public/stk_mainpage.html | 4 ++++ public/stk_signup.html | 4 ++++ public/upload_file.html | 4 ++++ 16 files changed, 58 insertions(+), 3 deletions(-) diff --git a/login-system/logout.js b/login-system/logout.js index a715449..3c681a2 100644 --- a/login-system/logout.js +++ b/login-system/logout.js @@ -1,5 +1,4 @@ const logout = async (req, res) => { - localStorage.removeItem("accessToken"); res.sendStatus(200); }; diff --git a/public/allotment.html b/public/allotment.html index 8691f76..22e44b9 100644 --- a/public/allotment.html +++ b/public/allotment.html @@ -214,6 +214,10 @@

Allot Faculty

- \ No newline at end of file + From 7191fd9c896b1562f922bf58cdcae5c25c25c791 Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:37:33 +0530 Subject: [PATCH 5/8] Removed token check from signup.html --- public/signup.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/signup.html b/public/signup.html index 8225674..45ab035 100644 --- a/public/signup.html +++ b/public/signup.html @@ -44,10 +44,6 @@
- \ No newline at end of file +