1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:05:56 +00:00

login system fixes

remove old-style session checking from backend.php
move outside subscription endpoint to public.php, change subscription
bookmarklet
This commit is contained in:
Andrew Dolgov
2012-09-10 19:01:06 +04:00
parent c3d2cda86d
commit 97acbaf190
7 changed files with 299 additions and 150 deletions

View File

@@ -65,7 +65,7 @@
// TODO remove and handle within Handlers
if (!($_SESSION["uid"] && validate_session($link))) {
/* if (!($_SESSION["uid"] && validate_session($link))) {
if ($op == 'pref-feeds' && $method == 'add') {
header("Content-Type: text/html");
login_sequence($link);
@@ -75,7 +75,7 @@
print json_encode(array("error" => array("code" => 6)));
}
return;
}
} */
$purge_intervals = array(
0 => __("Use default"),
@@ -143,6 +143,10 @@
}
$handler->after();
return;
} else {
header("Content-Type: text/plain");
print json_encode(array("error" => array("code" => 6)));
return;
}
} else {
header("Content-Type: text/plain");