From c0e0cd31011b103deb0f6b0c0533f0ca92dbc9b9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 27 Oct 2020 15:50:24 -0600 Subject: [PATCH] Update database.php Add domain_uuid to the SQL select statement. --- core/authentication/resources/classes/plugins/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index f75cac26b0..df85e1e936 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -30,7 +30,7 @@ class plugin_database { $user_authorized = false; //check the username and password if they don't match then redirect to the login - $sql = "select u.user_uuid, u.contact_uuid, u.username, u.password, u.salt, u.api_key, d.domain_name "; + $sql = "select u.user_uuid, u.contact_uuid, u.username, u.password, u.salt, u.api_key, u.domain_uuid, d.domain_name "; $sql .= "from v_users as u, v_domains as d "; $sql .= "where u.domain_uuid = d.domain_uuid "; if (strlen($this->key) > 30) {