Skip to content

Commit

Permalink
Fix anonymous bind (#9195)
Browse files Browse the repository at this point in the history
With the retriveByLegacyId() split out this should just be a simple get from the db.
  • Loading branch information
murrant committed Sep 12, 2018
1 parent 588b115 commit 387a79e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Providers/LegacyUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class LegacyUserProvider implements UserProvider
*/
public function retrieveById($identifier)
{
$username = User::where('user_id', $identifier)->value('username');

return $this->fetchUserByName($username);
return User::find($identifier);
}

/**
Expand Down

0 comments on commit 387a79e

Please sign in to comment.