mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More cleanups (#12715)
* PHPDoc * Replace Auth > Illuminate\Support\Facades\Auth * Return inside when() * use str_replace correct * Misc * dead code * use int $port * styleci
This commit is contained in:
@@ -72,7 +72,7 @@ class TokenUserProvider extends LegacyUserProvider implements UserProvider
|
||||
|
||||
// missing user for existing token, create it assuming legacy auth_id
|
||||
$api_token = ApiToken::where('token_hash', $credentials['api_token'])->first();
|
||||
/** @var \App\Models\User */
|
||||
/** @var \App\Models\User|null */
|
||||
$user = $this->retrieveByLegacyId($api_token->user_id);
|
||||
|
||||
// update token user_id
|
||||
|
Reference in New Issue
Block a user