mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 13:01:27 +00:00
fix http basic authentication
This commit is contained in:
@@ -604,9 +604,9 @@
|
||||
|
||||
}
|
||||
|
||||
function http_authenticate_user($link) {
|
||||
function http_authenticate_user($link, $force_logout) {
|
||||
|
||||
if (!$_SERVER['PHP_AUTH_USER']) {
|
||||
if (!$_SERVER['PHP_AUTH_USER'] || $force_logout) {
|
||||
|
||||
header('WWW-Authenticate: Basic realm="Tiny Tiny RSS"');
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
|
||||
Reference in New Issue
Block a user