FIX wrong param entity value

This commit is contained in:
Regis Houssin
2024-12-04 09:39:03 +01:00
parent 19b0c2d8a0
commit badbc14c62
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) $storage->clearToken($genericstring); // Delete the token called ("Generic-".$storage->keyforprovider)
$tmpuser = new User($db); $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) { if ($res > 0) {
$username = $tmpuser->login; $username = $tmpuser->login;

View File

@@ -330,7 +330,7 @@ if (!GETPOST('code')) {
$storage->clearToken('Google'); // Delete the token called ("Google-".$storage->keyforprovider) $storage->clearToken('Google'); // Delete the token called ("Google-".$storage->keyforprovider)
$tmpuser = new User($db); $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) { if ($res > 0) {
$username = $tmpuser->login; $username = $tmpuser->login;