Page reload only in case of error 412

This commit is contained in:
Pierre 2018-05-20 15:01:25 +02:00
parent f4d019046d
commit d01b9f4803

View File

@ -59,8 +59,8 @@ ComunicWeb.user.userLogin = {
//Set user ID to 0 (security purpose) //Set user ID to 0 (security purpose)
ComunicWeb.user.userLogin.__userID = 0; ComunicWeb.user.userLogin.__userID = 0;
//If error is 404, make user as logged out //If error is 412, make user as logged out
if(result.error.code == 401){ if(result.error.code == 412){
ComunicWeb.user.userLogin.__userLogin = false; ComunicWeb.user.userLogin.__userLogin = false;
ComunicWeb.user.loginTokens.deleteLoginTokens(); ComunicWeb.user.loginTokens.deleteLoginTokens();