Skip to content

Commit

Permalink
Revert "Return null if no credentials are passed to UserProvider (#21975
Browse files Browse the repository at this point in the history
)" (#21982)

This reverts commit 3cb0a82.
  • Loading branch information
taylorotwell authored Nov 6, 2017
1 parent 3cb0a82 commit 66df916
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/Illuminate/Auth/DatabaseUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ public function retrieveByCredentials(array $credentials)
}
}

if (empty($query->wheres)) {
return;
}

// Now we are ready to execute the query to see if we have an user matching
// the given credentials. If not, we will just return nulls and indicate
// that there are no matching users for these given credential arrays.
Expand Down
4 changes: 0 additions & 4 deletions src/Illuminate/Auth/EloquentUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ public function retrieveByCredentials(array $credentials)
}
}

if (empty($query->wheres)) {
return;
}

return $query->first();
}

Expand Down

0 comments on commit 66df916

Please sign in to comment.