From 008597d15951714dac7fee454c4757b80c79304d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 10 Sep 2016 22:22:37 -0600 Subject: [PATCH] Update database.php Add contact_uuid to the database plugin. --- core/authentication/resources/classes/plugins/database.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 6eed1efa85..22f4c66e14 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -3,7 +3,8 @@ /** * plugin_database * - * @method database checks the local database to authenticate the user or key + * @method validate uses authentication plugins to check if a user is authorized to login + * @method get_domain used to get the domain name from the URL or username and then sets both domain_name and domain_uuid */ class plugin_database { @@ -14,6 +15,7 @@ class plugin_database { public $domain_name; public $domain_uuid; public $user_uuid; + public $contact_uuid; public $username; public $password; public $key; @@ -83,6 +85,7 @@ class plugin_database { //set the user_uuid $this->user_uuid = $row['user_uuid']; + $this->contact_uuid = $row['contact_uuid']; //if salt is not defined then use the default salt for backwards compatibility if (strlen($row["salt"]) == 0) {