From 1cda16523dac97e5dfc51f2a02f1a17f58ea1844 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Thu, 2 Nov 2023 17:42:08 +0200 Subject: [PATCH] Fixed SQL query for retrieving SSO users. --- data/web/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 0b69a4a69..36b1213bc 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -2355,7 +2355,7 @@ function identity_provider($_action, $_data = null, $_extra = null) { AND `mailbox`.`active`='1' AND `domain`.`active`='1' AND `username` = :user - AND `authsource`='keycloak' OR `authsource`='generic-oidc'"); + AND (`authsource`='keycloak' OR `authsource`='generic-oidc')"); $stmt->execute(array(':user' => $info['email'])); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row){