Disable authentication if the user type is set to virtual.

This commit is contained in:
markjcrane
2023-07-13 18:30:29 -06:00
parent d3aed6707e
commit 52c0b3955f
4 changed files with 4 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ class plugin_database {
$sql .= "u.user_email, 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 ";
$sql .= "and user_type = 'default' ";
if (isset($this->key) && strlen($this->key) > 30) {
$sql .= "and u.api_key = :api_key ";
$parameters['api_key'] = $this->key;