Skip to content

Commit

Permalink
[8.x] Protect against ambiguous columns (#43278)
Browse files Browse the repository at this point in the history
* [8.x] Protect against ambiguous columns

Resolving laravel/framework#43274

* Updating tests.
  • Loading branch information
BenWalters authored Jul 19, 2022
1 parent 02b1667 commit 0dbc239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function retrieveById($identifier)
$model = $this->createModel();

return $this->newModelQuery($model)
->where($model->getAuthIdentifierName(), $identifier)
->where($model->qualifyColumn($model->getAuthIdentifierName()), $identifier)
->first();
}

Expand All @@ -65,7 +65,7 @@ public function retrieveByToken($identifier, $token)
$model = $this->createModel();

$retrievedModel = $this->newModelQuery($model)->where(
$model->getAuthIdentifierName(), $identifier
$model->qualifyColumn($model->getAuthIdentifierName()), $identifier
)->first();

if (! $retrievedModel) {
Expand Down

0 comments on commit 0dbc239

Please sign in to comment.