Merge pull request #1677 from guerinaxel/patch-6

LDAP Authentication faulty
This commit is contained in:
Laurent Destailleur 2014-06-20 17:14:02 +02:00
commit 69c518a483

View File

@ -55,7 +55,7 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
$login='';
$resultFetchUser='';
if (! empty($_POST["username"]))
if (!empty($_POST["username"]) || $usertotest)
{
// If test username/password asked, we define $test=false and $login var if ok, set $_SESSION["dol_loginmesg"] if ko
$ldaphost=$dolibarr_main_auth_ldap_host;
@ -228,4 +228,4 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
}
?>
?>