summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 11:14:38 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 11:14:38 +0100
commit8cb7480484d03a06663ac031ad3db33ea46b77ae (patch)
treea5d486db88c66f3d2177917195e633f2b9ebc242 /prefs.php
parent2317ffaae70ec345add4eb90c4f79d74ca831e8b (diff)
fix http basic authentication
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php5
1 files changed, 3 insertions, 2 deletions
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;