Remove debug for authentication class. The validation method returns enough details.

This commit is contained in:
markjcrane 2023-06-12 16:27:47 -06:00
parent a903d0efbf
commit 6e7d274c5a
2 changed files with 0 additions and 13 deletions

View File

@ -94,7 +94,6 @@ class authentication {
if (file_exists($plugin)) { if (file_exists($plugin)) {
include_once $plugin; include_once $plugin;
$object = new $class_name(); $object = new $class_name();
$object->debug = $this->debug;
$object->domain_name = $this->domain_name; $object->domain_name = $this->domain_name;
$object->domain_uuid = $this->domain_uuid; $object->domain_uuid = $this->domain_uuid;
if ($plugin == 'database' && isset($this->key)) { if ($plugin == 'database' && isset($this->key)) {
@ -168,16 +167,6 @@ class authentication {
//add user logs //add user logs
user_logs::add($result); user_logs::add($result);
//debug information
if (!empty($debug)) {
if ($row["authorized"]) {
echo "authorized: true\n";
}
else {
echo "authorized: false\n";
}
}
//user is authorized - get user settings, check user cidr //user is authorized - get user settings, check user cidr
if (!empty($authorized)) { if (!empty($authorized)) {
@ -497,7 +486,6 @@ $auth = new authentication;
$auth->username = "user"; $auth->username = "user";
$auth->password = "password"; $auth->password = "password";
$auth->domain_name = "sip.fusionpbx.com"; $auth->domain_name = "sip.fusionpbx.com";
$auth->debug = false;
$response = $auth->validate(); $response = $auth->validate();
print_r($response); print_r($response);
*/ */

View File

@ -55,7 +55,6 @@
//validate the username and password //validate the username and password
$auth = new authentication; $auth = new authentication;
$auth->debug = true;
$result = $auth->validate(); $result = $auth->validate();
//if not authorized //if not authorized