Skip to content

Commit

Permalink
[9.x] Protect against ambiguous columns
Browse files Browse the repository at this point in the history
Resolving laravel#43274
  • Loading branch information
BenWalters authored Jul 19, 2022
1 parent d425952 commit 7f12592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 @@ -64,7 +64,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 7f12592

Please sign in to comment.