Add additional commented code for future troubleshooting.

This commit is contained in:
Mark Crane
2012-11-13 13:33:10 +00:00
parent 040ea0c54c
commit 4f08dede13

View File

@@ -78,6 +78,8 @@ session_start();
//check the username and password if they don't match then redirect to the login
$sql = "select * from v_users ";
//$sql .= "where domain_uuid='".$domain_uuid."' ";
//$sql .= "and username='".$username."' ";
$sql .= "where domain_uuid=:domain_uuid ";
$sql .= "and username=:username ";
$sql .= "and (user_enabled = 'true' or user_enabled is null) ";
@@ -134,6 +136,8 @@ session_start();
//get the groups assigned to the user and then set the groups in $_SESSION["groups"]
$sql = "SELECT * FROM v_group_users ";
//$sql .= "where domain_uuid='".$domain_uuid."' ";
//$sql .= "and user_uuid='".$_SESSION["user_uuid"]."' ";
$sql .= "where domain_uuid=:domain_uuid ";
$sql .= "and user_uuid=:user_uuid ";
$prep_statement = $db->prepare(check_sql($sql));