Use string 'true' for the 'exact' query parameter to retrieve users from Keycloak

This commit is contained in:
Andreas Krist 2026-06-02 13:59:26 +02:00
parent 175878f8f1
commit 7b395acb84

View file

@ -515,7 +515,7 @@ function keycloak_mbox_login_rest($user, $pass, $extra = null){
// get the mailcow_password attribute from keycloak user
$url = "{$iam_settings['server_url']}/admin/realms/{$iam_settings['realm']}/users";
$queryParams = array('email' => $user, 'exact' => true);
$queryParams = array('email' => $user, 'exact' => 'true');
$queryString = http_build_query($queryParams);
$curl = curl_init();
curl_setopt($curl, CURLOPT_TIMEOUT, 7);