Skip to content

Commit

Permalink
Add alert message in logout for session expiry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashrockzzz2003 committed Oct 14, 2024
1 parent 578d289 commit 9d8f71b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Built for Anokha Event Organizers/Admins to take attendance of the participants

1. Clone the repository.
2. Open the project in your favorite code editor.
3. Open the `login.html` file in your browser.
3. Open the `index.html` file in your browser.

Built with ❤️ by Ashwin Narayanan S.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ function redirectTo(url) {
}

function logout() {
alert("Session expired. Please login again.");
localStorage.clear();
window.location.href = "index.html";
}
Expand Down
2 changes: 1 addition & 1 deletion login.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Login</title>
<title>Anokha 2024 | Login</title>
<link rel="stylesheet" href="styles/base.css" />
<link rel="stylesheet" href="styles/login.css" />
</head>
Expand Down

0 comments on commit 9d8f71b

Please sign in to comment.