Skip to content
Snippets Groups Projects
Commit ac26102b authored by degygii's avatar degygii
Browse files

changed behaviour of amivcore

parent cd6f346c
No related branches found
No related tags found
No related merge requests found
......@@ -190,8 +190,8 @@
core.lib.authenticated = false;
}
core.lib.ready = true;
if (!exec_once)
setTimeout(checkAuth, core.lib.auth_interval);
// if (!exec_once)
// setTimeout(checkAuth, core.lib.auth_interval);
});
} else {
core.lib.authenticated = false;
......@@ -252,6 +252,7 @@
set('cur_token_id', msg['id'], 1);
set('cur_token', msg['token'], 1);
set('cur_user_id', parseInt(msg['user_id']), 1);
checkAuth();
callback(true);
} else {
set('cur_token_id', null);
......@@ -271,6 +272,7 @@
set('cur_token', null);
set('cur_token_id', null);
set('cur_user_id', null);
checkAuth();
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment