We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fecd6 commit b51510aCopy full SHA for b51510a
server/frontend/static/Home.html
@@ -8,24 +8,6 @@
8
9
const logout = async (e) => {
10
//Include the code for logout here.
11
-let logout_url = window.location.origin+"/djangoapp/logout";
12
- const res = await fetch(logout_url, {
13
- method: "GET",
14
- });
15
-
16
- const json = await res.json();
17
- if (json) {
18
- let username = sessionStorage.getItem('username');
19
- sessionStorage.removeItem('username');
20
- window.location.href = window.location.origin;
21
- window.location.reload();
22
- alert("Logging out "+username+"...")
23
- }
24
- else {
25
- alert("The user could not be logged out.")
26
27
28
29
};
30
31
let checkSession = ()=>{
0 commit comments