Skip to content

Commit

Permalink
Merge pull request #10 from GEANT/dv_log_more
Browse files Browse the repository at this point in the history
Log more in the users_spentityids table
  • Loading branch information
dnmvisser authored Sep 12, 2022
2 parents ee1b33a + d19377a commit 1b0c079
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/AccountLinker/Store/SQLStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,20 @@ public function saveSpEntityId()
{
$userId = $this->getUserId();
$dbh = $this->_getStore();
$stmt = $dbh->prepare("INSERT INTO users_spentityids (user_id, spentityid) VALUES (:user_id, :spentityid)");
$stmt = $dbh->prepare("INSERT INTO users_spentityids (
user_id,
account_id,
spentityid,
idp_entityid
) VALUES (
:user_id,
:account_id,
:spentityid,
:idp_entityid)");
$stmt->execute(array(
':user_id' => $userId,
':idp_entityid' => $this->getEntityId(),
':account_id' => $this->_getAccountId(),
':spentityid' => $this->_spEntityId
));

Expand Down

0 comments on commit 1b0c079

Please sign in to comment.