From 475c5999b57135fefd6129c00e87d7f5aa9a75cc Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 8 Sep 2018 02:51:39 +0200 Subject: UI: GET/POST logout fix, avoid 'Wrong credentials' notice when logging out --- hosted/logout.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 hosted/logout.js (limited to 'hosted/logout.js') diff --git a/hosted/logout.js b/hosted/logout.js new file mode 100644 index 0000000..4dedd4d --- /dev/null +++ b/hosted/logout.js @@ -0,0 +1,5 @@ +function logoutThenRedirect() { + $.post("/logout").done(function(data) { + window.location.replace("/"); + }); +} \ No newline at end of file -- cgit 1.4.1