Skip to content

Commit b51510a

Browse files
authored
Update Home.html
1 parent c7fecd6 commit b51510a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

server/frontend/static/Home.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,6 @@
88

99
const logout = async (e) => {
1010
//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-
2911
};
3012

3113
let checkSession = ()=>{

0 commit comments

Comments
 (0)