From e4e814281d35f66502bdd505234ab447c3eb86e7 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 28 Sep 2011 12:59:40 +0000 Subject: [PATCH] #484 Fixed issue with IIS ("Wrong password" at first prompt) SVN:1.2[1610] --- application/loginwebpage.class.inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 679a00f08c..514fafb4a2 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -346,12 +346,10 @@ EOF case 'external': // Web server supplied authentication $bExternalAuth = false; - $sExtAuthVar = MetaModel::GetConfig()->GetExternalAuthenticationVariable(); // In which variable is the info passed ? - $sEval = '$bExternalAuth = isset('.$sExtAuthVar.');'; - eval($sEval); - if ($bExternalAuth) - { - eval('$sAuthUser = '.$sExtAuthVar.';'); // Retrieve the value + $sExtAuthVar = MetaModel::GetConfig()->GetExternalAuthenticationVariable(); // In which variable is the info passed ? + eval('$sAuthUser = isset('.$sExtAuthVar.') ? '.$sExtAuthVar.' : false;'); // Retrieve the value + if ($sAuthUser && (strlen($sAuthUser) > 0)) + { $sAuthPwd = ''; // No password in this case the web server already authentified the user... $sLoginMode = 'external'; $sAuthentication = 'external';