From eba84527c324744d841b5c4cb5facef3b3e8e50c Mon Sep 17 00:00:00 2001 From: "Cheng-Han, Wu" Date: Sun, 31 Jan 2016 15:33:25 -0600 Subject: [PATCH] Fixed only "AUTH failed" error message would redirect to 403 --- public/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 96e614ef..bc3ee793 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1175,7 +1175,8 @@ socket.on('info', function (data) { }); socket.on('error', function (data) { console.error(data); - location.href = "./403"; + if (data.message.indexOf('AUTH failed') === 0) + location.href = "./403"; }); socket.on('disconnect', function (data) { showStatus(statusType.offline);