mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 09:55:56 +00:00
automatically logout user when session expires
This commit is contained in:
10
tt-rss.js
10
tt-rss.js
@@ -70,7 +70,7 @@ function refetch_callback() {
|
||||
notify("refetch_callback: backend did not return valid XML");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var reply = xmlhttp.responseXML.firstChild;
|
||||
|
||||
if (!reply) {
|
||||
@@ -78,6 +78,12 @@ function refetch_callback() {
|
||||
return;
|
||||
}
|
||||
|
||||
var error_code = reply.getAttribute("error-code");
|
||||
|
||||
if (error_code && error_code != 0) {
|
||||
return fatalError(error_code);
|
||||
}
|
||||
|
||||
var f_document = window.frames["feeds-frame"].document;
|
||||
|
||||
for (var l = 0; l < reply.childNodes.length; l++) {
|
||||
@@ -133,7 +139,7 @@ function backend_sanity_check_callback() {
|
||||
return;
|
||||
}
|
||||
|
||||
var error_code = reply.getAttribute("code");
|
||||
var error_code = reply.getAttribute("error-code");
|
||||
|
||||
if (error_code && error_code != 0) {
|
||||
return fatalError(error_code);
|
||||
|
||||
Reference in New Issue
Block a user