Remove a redundant check and change from text to boolean.
This commit is contained in:
parent
d92ba11967
commit
4fbd84febf
|
|
@ -79,9 +79,8 @@ session_start();
|
|||
$username = check_str($_REQUEST["username"]);
|
||||
|
||||
//ldap authentication
|
||||
if ($_SESSION["ldap"]["authentication"]["text"] == "true") {
|
||||
if ($_SESSION["ldap"]["authentication"]["boolean"] == "true") {
|
||||
//use ldap to validate the user credentials
|
||||
if ($_SESSION["ldap"]["authentication"]["text"] == "true") {
|
||||
if (strlen(check_str($_REQUEST["domain_name"])) > 0) {
|
||||
$domain_name = check_str($_REQUEST["domain_name"]);
|
||||
}
|
||||
|
|
@ -97,7 +96,6 @@ session_start();
|
|||
//echo "failed\n";
|
||||
$auth_failed = true;
|
||||
}
|
||||
}
|
||||
|
||||
//check to see if the user exists
|
||||
$sql = "select * from v_users ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue