From 5292fe04565102320c94c3cd161f9620fa44c76c Mon Sep 17 00:00:00 2001 From: seek3r Date: Thu, 14 Dec 2000 22:18:39 +0000 Subject: [PATCH] added ability to auth based on http auth --- login.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 3ef94efdf0..574c5e139a 100755 --- a/login.php +++ b/login.php @@ -95,7 +95,13 @@ } else { $phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes")); } - + }elseif (isset($PHP_AUTH_USER)) { + $sessionid = $phpgw->session->create($PHP_AUTH_USER,$PHP_AUTH_PW); + if (!isset($sessionid) || !$sessionid) { + $phpgw->redirect($phpgw_info["server"]["webserver_url"]."/login.php?cd=5"); + } else { + $phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes")); + } } else { // !!! DONT CHANGE THESE LINES !!! // If there is something wrong with this code TELL ME!