Skip to content

Commit

Permalink
FIX wrong param entity value
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Dec 4, 2024
1 parent 19b0c2d commit badbc14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/modules/oauth/generic_oauthcallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/oauth/google_oauthcallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit badbc14

Please sign in to comment.