Pass the settings object to all plugins.

This commit is contained in:
Mark J Crane
2025-10-23 09:38:29 -06:00
parent 126779190f
commit 5eb560d9fa
4 changed files with 65 additions and 63 deletions

View File

@@ -113,13 +113,9 @@ class authentication {
$object->username = $this->username;
$object->password = $this->password;
}
//database plugin requires the authentication object and settings
if ($name == 'database') {
$array = $object->$name($this, $settings);
} else {
//get the array from the plugin
$array = $object->$name();
}
//initialize the plugin send the authentication object and settings
$array = $object->$name($this, $settings);
//build a result array
if (!empty($array) && is_array($array)) {
$result['plugin'] = $array["plugin"];