mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Page reload only in case of error 412
This commit is contained in:
parent
f4d019046d
commit
d01b9f4803
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user