From 8cb7480484d03a06663ac031ad3db33ea46b77ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 11:14:38 +0100 Subject: fix http basic authentication --- prefs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'prefs.php') diff --git a/prefs.php b/prefs.php index 0673fd36f..ac874a8e4 100644 --- a/prefs.php +++ b/prefs.php @@ -12,11 +12,12 @@ if (!USE_HTTP_AUTH) { if (!$_SESSION["uid"]) { - header("Location: login.php?rt=prefs.php"); + header("Location: login.php?rt=tt-rss.php"); exit; } } else { - authenticate_user($link); + $force_logout = $_POST["ForceLogout"]; + http_authenticate_user($link, $force_logout == "yes"); } } else { $_SESSION["uid"] = 1; -- cgit v1.2.3