Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Sep 21, 2017
1 parent 469bced commit 0275f9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Auth/EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public function retrieveByToken($identifier, $token)
{
$model = $this->createModel();

$model = $model->newQuery()
->where($model->getAuthIdentifierName(), $identifier)
->first();
$model = $model->where($model->getAuthIdentifierName(), $identifier)->first();

return $model && hash_equals($model->getRememberToken(), $token) ? $model : null;
}
Expand Down

0 comments on commit 0275f9c

Please sign in to comment.