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();