Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Sep 21, 2017
1 parent 74d5014 commit f74c83e
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 f74c83e

Please sign in to comment.