mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 14:31:29 +01:00
FIX wrong param entity value
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user