diff --git a/src/www/diag_authentication.php b/src/www/diag_authentication.php index 5f6403bb0..547f092e1 100644 --- a/src/www/diag_authentication.php +++ b/src/www/diag_authentication.php @@ -59,7 +59,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { OPNsense\Core\Config::getInstance()->forceReload(); $config = parse_config(); $userindex = index_users(); - $groups = getUserGroups($_POST['username']); + $groups = getUserGroups($authenticator->getUserName($_POST['username'])); $savemsg .= "
" . gettext("This user is a member of these groups") . ":
"; foreach ($groups as $group) { $savemsg .= "{$group} ";