From 4f08dede1365debf43ecf9ccaeacb28d25e83daa Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 13 Nov 2012 13:33:10 +0000 Subject: [PATCH] Add additional commented code for future troubleshooting. --- includes/checkauth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/checkauth.php b/includes/checkauth.php index 93574a7d9b..8a14c7a712 100644 --- a/includes/checkauth.php +++ b/includes/checkauth.php @@ -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));