Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Models/OAuth2/OAuth2OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,5 +498,4 @@ public function getUserId()
{
return $this->user_id;
}

}
6 changes: 6 additions & 0 deletions app/Repositories/DoctrineOAuth2OTPRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,10 @@ public function getByValueConnectionAndUserName
->setMaxResults(1)
->getOneOrNullResult();
}

public function refreshExclusiveLock(OAuth2OTP $otp): void
{
// Single round-trip: SELECT ... FOR UPDATE that also re-hydrates the entity.
$this->getEntityManager()->refresh($otp, \Doctrine\DBAL\LockMode::PESSIMISTIC_WRITE);
}
}
Loading
Loading