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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user