From d01b9f4803108d5da0926d2772cd683ed7027e37 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 20 May 2018 15:01:25 +0200 Subject: [PATCH] Page reload only in case of error 412 --- assets/js/user/userLogin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/user/userLogin.js b/assets/js/user/userLogin.js index e76f5c2b..6b6827ab 100644 --- a/assets/js/user/userLogin.js +++ b/assets/js/user/userLogin.js @@ -59,8 +59,8 @@ ComunicWeb.user.userLogin = { //Set user ID to 0 (security purpose) ComunicWeb.user.userLogin.__userID = 0; - //If error is 404, make user as logged out - if(result.error.code == 401){ + //If error is 412, make user as logged out + if(result.error.code == 412){ ComunicWeb.user.userLogin.__userLogin = false; ComunicWeb.user.loginTokens.deleteLoginTokens();