From 68ed62c6f8df3dde7131dabd162a745348a3755f Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Tue, 18 Nov 2003 22:03:34 +0000 Subject: [PATCH] make http auth login and sqlssl login working again Fix for BUG [ 844013 ] "http" authentication failes --- login.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index aedb69dd47..296df0e35a 100755 --- a/login.php +++ b/login.php @@ -14,12 +14,15 @@ /* $Id$ */ $phpgw_info = array(); + $submit = false; // set to some initial value + $GLOBALS['phpgw_info']['flags'] = array( 'disable_template_class' => True, 'login' => True, 'currentapp' => 'login', 'noheader' => True ); + if(file_exists('./header.inc.php')) { include('./header.inc.php'); @@ -155,7 +158,13 @@ { $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/login.php','code=5')); } - $login = $_POST['login']; + + // don't get login data again when $submit is true + if($submit == false) + { + $login = $_POST['login']; + } + if (strstr($login,'@') === False && isset($_POST['logindomain'])) { $login .= '@' . $_POST['logindomain'];