Update authentication.php

This commit is contained in:
FusionPBX 2019-08-12 23:16:12 -06:00 committed by GitHub
parent a76d9637e3
commit 3bb2cc3322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -65,18 +65,18 @@ class authentication {
$plugin = $base."/".$name.".php";
if (file_exists($plugin)) {
include_once $plugin;
$obj = new $class_name();
$obj->debug = $this->debug;
$obj->domain_name = $this->domain_name;
$obj->domain_uuid = $this->domain_uuid;
$object = new $class_name();
$object->debug = $this->debug;
$object->domain_name = $this->domain_name;
$object->domain_uuid = $this->domain_uuid;
if (strlen($this->key) > 0) {
$obj->key = $this->key;
$object->key = $this->key;
}
if (strlen($this->username) > 0) {
$obj->username = $this->username;
$obj->password = $this->password;
$object->username = $this->username;
$object->password = $this->password;
}
$array = $obj->$name();
$array = $object->$name();
$result['plugin'] = $array["plugin"];
$result['domain_name'] = $array["domain_name"];
$result['username'] = $array["username"];