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

@@ -132,6 +132,7 @@ class plugin_email {
$sql .= "and domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $_SESSION["domain_uuid"];
}
$sql .= "and user_type = 'default' ";
$parameters['username'] = $_REQUEST['username'];
$database = new database;
$row = $database->select($sql, $parameters, 'row');