From 806f94b4eb0e6e2382d99e88b953cf479a49d339 Mon Sep 17 00:00:00 2001 From: seek3r Date: Fri, 15 Dec 2000 07:55:39 +0000 Subject: [PATCH] trying to add logou abiliyt when using http auth --- login.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 8056736549..30ad3a8a19 100755 --- a/login.php +++ b/login.php @@ -25,6 +25,14 @@ } */ +/* This is not working yet because I need to figure out a way to clear the $cd =1 + if(isset($PHP_AUTH_USER) && $cd == "1") { + Header("HTTP/1.0 401 Unauthorized"); + Header("WWW-Authenticate: Basic realm=\"phpGroupWare\""); + echo "You have to re-authentificate yourself \n"; + exit; + } +*/ $tmpl = new Template($phpgw_info["server"]["template_dir"]); if (! $deny_login && ! $phpgw_info["server"]["show_domain_selectbox"]) { @@ -84,7 +92,6 @@ deny_login(); } - if (isset($PHP_AUTH_USER)) { $submit = True; $login = $PHP_AUTH_USER;