DSatishchandra commited on
Commit
8f8bed9
·
verified ·
1 Parent(s): 3309f93

Update templates/dashboard.html

Browse files
Files changed (1) hide show
  1. templates/dashboard.html +1 -10
templates/dashboard.html CHANGED
@@ -111,7 +111,7 @@
111
  }
112
  // If user says "Logout", log out
113
  else if (command.includes("logout")) {
114
- logout();
115
  }
116
  };
117
 
@@ -121,15 +121,6 @@
121
  speak("Sorry, I couldn't understand that. Please try again.");
122
  };
123
  }
124
-
125
- // Logout function
126
- function logout() {
127
- // Example of clearing session storage or cookies (if applicable)
128
- // sessionStorage.clear(); // Uncomment if using sessionStorage
129
-
130
- // Redirect to the landing page (Modify this URL with the correct path)
131
- window.location.href = "/index.html"; // Modify with actual logout route
132
- }
133
  </script>
134
 
135
  </body>
 
111
  }
112
  // If user says "Logout", log out
113
  else if (command.includes("logout")) {
114
+ window.location.href = "/login"; // Redirect to login page
115
  }
116
  };
117
 
 
121
  speak("Sorry, I couldn't understand that. Please try again.");
122
  };
123
  }
 
 
 
 
 
 
 
 
 
124
  </script>
125
 
126
  </body>