mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Add additional commented code for future troubleshooting.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user