Revert "FIX wrong param entity value"

This reverts commit badbc14c62.
This commit is contained in:
Regis Houssin 2024-12-04 10:22:28 +01:00
parent 87dd68a605
commit 0f50c8e1e8
2 changed files with 2 additions and 2 deletions

View file

@ -340,7 +340,7 @@ if (!GETPOST('code') && !GETPOST('error')) {
$storage->clearToken($genericstring); // Delete the token called ("Generic-".$storage->keyforprovider)
$tmpuser = new User($db);
$res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, -1, 1); // Load user. Can load with email_oauth2.
$res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2.
if ($res > 0) {
$username = $tmpuser->login;

View file

@ -330,7 +330,7 @@ if (!GETPOST('code')) {
$storage->clearToken('Google'); // Delete the token called ("Google-".$storage->keyforprovider)
$tmpuser = new User($db);
$res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, -1, 1); // Load user. Can load with email_oauth2.
$res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2.
if ($res > 0) {
$username = $tmpuser->login;