Update verification handling

This commit is contained in:
DariusIII
2026-03-29 09:42:55 +02:00
parent e256778b95
commit 7809f54008
13 changed files with 326 additions and 20 deletions
+1 -2
View File
@@ -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();
});