From 947c9b6eea9c5afb22e8bdb250d9794ab54711ef Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 28 Jul 2014 14:28:59 -0400 Subject: [PATCH] you're now logged out server-side when you're banned, so csrf token doesn't work in app.logout --- public/src/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index 7a2a86c25d..080b1ee7e3 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -154,7 +154,9 @@ var socket, timeout: 1000 }); - setTimeout(app.logout, 1000); + setTimeout(function() { + window.location.href = RELATIVE_PATH + '/'; + }, 1000); }); app.enterRoom('global');