Add additional commented code for future troubleshooting.
This commit is contained in:
parent
040ea0c54c
commit
4f08dede13
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue