Add user_type is null for better backwarads compatibility

This commit is contained in:
markjcrane
2023-07-14 12:38:45 -06:00
parent 4e861b0dcb
commit 4951647225
4 changed files with 4 additions and 4 deletions
@@ -149,7 +149,7 @@ class plugin_totp {
$sql .= "and domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $this->domain_uuid;
}
$sql .= "and user_type = 'default' ";
$sql .= "and (user_type = 'default' or user_type is null) ";
$parameters['username'] = $this->username;
$database = new database;
$row = $database->select($sql, $parameters, 'row');