mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix anonymous bind (#9195)
With the retriveByLegacyId() split out this should just be a simple get from the db.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user