From badbc14c621c1c2dbab04366d1d8bac494c20d7a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 4 Dec 2024 09:39:03 +0100 Subject: [PATCH] FIX wrong param entity value --- htdocs/core/modules/oauth/generic_oauthcallback.php | 2 +- htdocs/core/modules/oauth/google_oauthcallback.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/oauth/generic_oauthcallback.php b/htdocs/core/modules/oauth/generic_oauthcallback.php index 72acdace03084..20a6fa1e41c3c 100644 --- a/htdocs/core/modules/oauth/generic_oauthcallback.php +++ b/htdocs/core/modules/oauth/generic_oauthcallback.php @@ -340,7 +340,7 @@ $storage->clearToken($genericstring); // Delete the token called ("Generic-".$storage->keyforprovider) $tmpuser = new User($db); - $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2. + $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, -1, 1); // Load user. Can load with email_oauth2. if ($res > 0) { $username = $tmpuser->login; diff --git a/htdocs/core/modules/oauth/google_oauthcallback.php b/htdocs/core/modules/oauth/google_oauthcallback.php index 474f272484334..d9e823081d8c1 100644 --- a/htdocs/core/modules/oauth/google_oauthcallback.php +++ b/htdocs/core/modules/oauth/google_oauthcallback.php @@ -330,7 +330,7 @@ $storage->clearToken('Google'); // Delete the token called ("Google-".$storage->keyforprovider) $tmpuser = new User($db); - $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2. + $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, -1, 1); // Load user. Can load with email_oauth2. if ($res > 0) { $username = $tmpuser->login;