mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09: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)
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user