mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update verification handling
This commit is contained in:
@@ -57,8 +57,7 @@ class ApiV2Controller extends BasePageController
|
||||
$userCacheKey = 'api_user:'.md5((string) $apiToken);
|
||||
|
||||
return Cache::remember($userCacheKey, 300, function () use ($apiToken) {
|
||||
return User::query()
|
||||
->where('api_token', $apiToken)
|
||||
return User::verifiedApiTokenQuery((string) $apiToken)
|
||||
->with('role')
|
||||
->first();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user