Fix anonymous bind (#9195)

With the retriveByLegacyId() split out this should just be a simple get from the db.
This commit is contained in:
Tony Murray
2018-09-12 12:51:52 -05:00
committed by GitHub
parent 588b115d66
commit 387a79e297

View File

@@ -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);
}
/**